From 4d652df0a112f7fa25d5cc106c7e813f59f79216 Mon Sep 17 00:00:00 2001
From: bibi <541660090@qq.com>
Date: Sat, 29 Jan 2022 16:06:51 +0800
Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=80=89=E6=8B=A9=E5=B0=8F?=
=?UTF-8?q?=E5=8C=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/public/login/index.js | 25 ++++++-
src/utils/util.js | 5 ++
.../Basic/Authority/depend/permissions.vue | 4 +-
src/views/Basic/Authority/index.vue | 4 +-
src/views/Layout/index.vue | 12 +++-
src/views/Login/index.vue | 72 ++++++++++++++-----
6 files changed, 97 insertions(+), 25 deletions(-)
diff --git a/src/api/public/login/index.js b/src/api/public/login/index.js
index 9e5247d..668cfec 100644
--- a/src/api/public/login/index.js
+++ b/src/api/public/login/index.js
@@ -16,4 +16,27 @@ export function loginTel(params) {
data: params,
})
}
-// 退出登录
\ No newline at end of file
+// 退出登录
+export function quit(params) {
+ return httpService({
+ url: `/user/quit`,
+ method: 'post',
+ data: params,
+ })
+}
+// 省市区
+export function allCity(params) {
+ return httpService({
+ url: `/city/allCity`,
+ method: 'get',
+ params: params,
+ })
+}
+// 查找所有小区
+export function findcommunity(params) {
+ return httpService({
+ url: `/community/findAll`,
+ method: 'get',
+ params: params,
+ })
+}
\ No newline at end of file
diff --git a/src/utils/util.js b/src/utils/util.js
index 21d0dfb..31872ab 100644
--- a/src/utils/util.js
+++ b/src/utils/util.js
@@ -1,6 +1,11 @@
import store from '@/store'
+import axios from 'axios'
+import qs from 'qs'
export default {
install: function (Vue) {
+ //axios
+ Vue.prototype.$axios = axios
+ Vue.prototype.qs = qs
// 上传
Vue.prototype.$upload = process.env.VUE_APP_URL + store.getters.getCommunityCode + '/manage/user/upload/uploadImg'
// 静态地址
diff --git a/src/views/Basic/Authority/depend/permissions.vue b/src/views/Basic/Authority/depend/permissions.vue
index f168514..3e2b098 100644
--- a/src/views/Basic/Authority/depend/permissions.vue
+++ b/src/views/Basic/Authority/depend/permissions.vue
@@ -17,7 +17,7 @@
type="link"
icon="form"
slot="extra"
- @click="editRole(item.id)"
+ @click.stop="editRole(item.id)"
>