From df0d48418fd0ca70a963d05fd8046a6d9dad9cdd Mon Sep 17 00:00:00 2001
From: "2309368887@qq.com" <2309368887@qq.com>
Date: Mon, 18 Jul 2022 11:22:17 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E9=92=AE=E6=9D=83=E9=99=90=E9=85=8D?=
=?UTF-8?q?=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/am/area.vue | 49 +++++++++++++++++++------------------------
1 file changed, 21 insertions(+), 28 deletions(-)
diff --git a/src/views/am/area.vue b/src/views/am/area.vue
index 87319a58..a3da1e09 100644
--- a/src/views/am/area.vue
+++ b/src/views/am/area.vue
@@ -8,6 +8,7 @@
@@ -32,12 +33,10 @@
ref="table"
:apiObj="apiObj"
row-key="id"
-
stripe
@resetQuery="resetQuery"
- @row-click="rowClick"
+ @row-click="rowClick"
>
-
围栏
@@ -133,6 +133,7 @@
text
type="warning"
size="small"
+ v-auth="area.update"
@click="handleForm('edit', scope.row)"
>编辑
@@ -141,7 +142,7 @@
@confirm="handleDel(scope.row, scope.$index)"
>
- 删除
@@ -159,6 +160,7 @@
@@ -183,19 +185,17 @@
ref="accesstable"
:data="apiaccessObj"
row-key="id"
-
stripe
@resetQuery="resetQuery"
>
-
-
+
准入
禁入
@@ -204,13 +204,14 @@
- {{
- cate_[scope.row.obj_cate]
- }}
+ {{
+ cate_[scope.row.obj_cate]
+ }}
-
- 删除
@@ -331,15 +331,10 @@ export default {
apiaccessObj: [],
areaId: null,
areaName: "",
- cate_:
- { post: "岗位" ,
- org: "单位" ,
- people: "人员"
- },
-
+ cate_: { post: "岗位", org: "单位", people: "人员" },
};
},
- mounted() {
+ mounted() {
this.getAccessList();
},
methods: {
@@ -365,14 +360,12 @@ export default {
}
});
},
- //点击区域显示进入权限
- rowClick(row) {
-
-
- this.$API.am.access.list.req({ area:row.id, page: 0 }).then((res) => {
+ //点击区域显示进入权限
+ rowClick(row) {
+ this.$API.am.access.list.req({ area: row.id, page: 0 }).then((res) => {
this.apiaccessObj = res;
});
- this.area = row.id;
+ this.area = row.id;
},
//围栏,添加
handleRail(row) {
@@ -391,7 +384,7 @@ export default {
}
});
},
-//出入权限列表
+ //出入权限列表
getAccessList() {
this.$API.am.access.list.req({ page: 0 }).then((res) => {
this.apiaccessObj = res;