- 新增
+ 新增
批量删除
@@ -231,6 +231,7 @@ export default {
},
created() {
this.getList()
+ this.hasButton()
this.getTreeData()
this.getDict()
this.loginuser = JSON.parse(sessionStorage.getItem('user')).USER_ID
@@ -358,7 +359,6 @@ export default {
this.listLoading = false
this.varList = data.varList
this.total = data.page.totalResult
- this.hasButton()
}).catch((e) => {
this.listLoading = false
})
@@ -425,16 +425,16 @@ export default {
},
// 判断按钮权限,用于是否显示按钮
hasButton: function() {
- var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel'
+ var keys = 'firefightingchecklist:add,firefightingchecklist:del,firefightingchecklist:edit,toExcel'
requestFN(
'/head/hasButton',
{
keys: keys
}
).then((data) => {
- this.add = data.listmanagerfhadminadd // 新增权限
- this.del = data.listmanagerfhadmindel // 删除权限
- this.edit = data.listmanagerfhadminedit // 修改权限
+ this.add = data.firefightingchecklistfhadminadd // 新增权限
+ this.del = data.firefightingchecklistfhadmindel // 删除权限
+ this.edit = data.firefightingchecklistfhadminedit // 修改权限
this.toExcel = data.toExcel
}).catch((e) => {
this.listLoading = false
diff --git a/src/views/firefighting/device/components/list.vue b/src/views/firefighting/device/components/list.vue
index 0d51e7f..0c6ff75 100644
--- a/src/views/firefighting/device/components/list.vue
+++ b/src/views/firefighting/device/components/list.vue
@@ -286,7 +286,6 @@ export default {
this.listLoading = false
this.varList = data.varList
this.total = data.page.totalResult
- this.hasButton()
}).catch((e) => {
this.listLoading = false
})
@@ -392,16 +391,16 @@ export default {
},
hasButton: function() {
- var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel'
+ var keys = 'firefightingdevice:add,firefightingdevice:del,firefightingdevice:edit,toExcel'
requestFN(
'/head/hasButton',
{
keys: keys
}
).then((data) => {
- this.add = data.listmanagerfhadminadd // 新增权限
- this.del = data.listmanagerfhadmindel // 删除权限
- this.edit = data.listmanagerfhadminedit // 修改权限
+ this.add = data.firefightingdevicefhadminadd // 新增权限
+ this.del = data.firefightingdevicefhadmindel // 删除权限
+ this.edit = data.firefightingdevicefhadminedit // 修改权限
this.toExcel = data.toExcel // 导出到excel权限
}).catch((e) => {
this.listLoading = false
diff --git a/src/views/firefighting/points/components/list.vue b/src/views/firefighting/points/components/list.vue
index 895841d..e648910 100644
--- a/src/views/firefighting/points/components/list.vue
+++ b/src/views/firefighting/points/components/list.vue
@@ -65,7 +65,7 @@
@click="handleEdit(row.FIRE_POINT_ID)">修改
- 新增
- 批量删除
+ 新增
+ 批量删除
+ @pagination="getList()"/>