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;