diff --git a/src/views/check/checkrecord/components/list.vue b/src/views/check/checkrecord/components/list.vue index e6f76be..107e3d3 100644 --- a/src/views/check/checkrecord/components/list.vue +++ b/src/views/check/checkrecord/components/list.vue @@ -76,8 +76,7 @@ @@ -141,6 +140,7 @@ export default { this.getList() this.getTreeData() this.getDict() + this.hasButton() }, methods: { @@ -196,6 +196,23 @@ export default { this.listLoading = false }) }, + hasButton: function() { + var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel' + requestFN( + '/head/hasButton', + { + keys: keys + } + ).then((data) => { + this.add = data.checkrecordfhadminadd // 新增权限 + this.del = data.checkrecordfhadmindel // 删除权限 + this.edit = data.checkrecordfhadminedit // 修改权限 + this.toExcel = data.toExcel + }).catch((e) => { + this.listLoading = false + }) + }, + // 跳转检查页面 handleCheck(id) { this.$parent.activeName = 'Checkdstart' diff --git a/src/views/check/listmanager/components/list.vue b/src/views/check/listmanager/components/list.vue index 25fe2f3..856638a 100644 --- a/src/views/check/listmanager/components/list.vue +++ b/src/views/check/listmanager/components/list.vue @@ -89,9 +89,9 @@
- 新增 + 新增 删除 - 继承清单 + 继承清单
diff --git a/src/views/check/recordlist/components/list.vue b/src/views/check/recordlist/components/list.vue index 2027300..cc3e478 100644 --- a/src/views/check/recordlist/components/list.vue +++ b/src/views/check/recordlist/components/list.vue @@ -67,7 +67,7 @@
@@ -100,6 +100,7 @@ export default { page: 1, limit: 20 }, + // recordlist:list defaultProps: { value: 'id', @@ -129,8 +130,25 @@ export default { created() { this.getList() this.getTreeData() + this.hasButton() }, methods: { + hasButton: function() { + var keys = 'recordlist:add,recordlist:del,recordlist:edit,toExcel' + requestFN( + '/head/hasButton', + { + keys: keys + } + ).then((data) => { + this.add = data.recordlistfhadminadd // 新增权限 + this.del = data.recordlistfhadmindel // 删除权限 + this.edit = data.recordlistfhadminedit // 修改权限 + this.toExcel = data.toExcel + }).catch((e) => { + this.listLoading = false + }) + }, getRowKey(row) { return row.CHECKRECORD_ID }, diff --git a/src/views/check/regionmanager/components/list.vue b/src/views/check/regionmanager/components/list.vue index 6fe97cf..88b516b 100644 --- a/src/views/check/regionmanager/components/list.vue +++ b/src/views/check/regionmanager/components/list.vue @@ -66,7 +66,7 @@
- 新增 + 新增
diff --git a/src/views/corpInfo/information/qualifications/components/list.vue b/src/views/corpInfo/information/qualifications/components/list.vue index 90be215..6dfabcd 100644 --- a/src/views/corpInfo/information/qualifications/components/list.vue +++ b/src/views/corpInfo/information/qualifications/components/list.vue @@ -76,14 +76,14 @@
- 新增 + 新增
diff --git a/src/views/firefighting/checklist/components/list.vue b/src/views/firefighting/checklist/components/list.vue index 3c32aa6..b0da7b2 100644 --- a/src/views/firefighting/checklist/components/list.vue +++ b/src/views/firefighting/checklist/components/list.vue @@ -79,14 +79,14 @@ 检查表二维码 - 启用 + 启用 - 禁用 + 禁用 查看 - 修改 + 修改 - + 删除 @@ -94,7 +94,7 @@
- 新增 + 新增 批量删除
@@ -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()"/>
@@ -217,7 +217,6 @@ export default { this.listLoading = false this.varList = data.varList this.total = data.page.totalResult - this.hasButton() }).catch((e) => { this.listLoading = false }) @@ -308,16 +307,16 @@ export default { }) }, hasButton: function() { - var keys = 'listmanager:add,listmanager:del,listmanager:edit,toExcel' + var keys = 'firefightingpoints:add,firefightingpoints:del,firefightingpoints:edit,toExcel' requestFN( '/head/hasButton', { keys: keys } ).then((data) => { - this.add = data.listmanagerfhadminadd // 新增权限 - this.del = data.listmanagerfhadmindel // 删除权限 - this.edit = data.listmanagerfhadminedit // 修改权限 + this.add = data.firefightingpointsfhadminadd // 新增权限 + this.del = data.firefightingpointsfhadmindel // 删除权限 + this.edit = data.firefightingpointsfhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/firefighting/record/components/list.vue b/src/views/firefighting/record/components/list.vue index f3e9dfc..4b6047b 100644 --- a/src/views/firefighting/record/components/list.vue +++ b/src/views/firefighting/record/components/list.vue @@ -181,6 +181,7 @@ export default { }, created() { this.getList() + this.hasButton() this.getTreeData() this.getDict() }, @@ -229,7 +230,6 @@ export default { this.varList = data.varList this.ls = data.ls this.total = data.page.totalResult - this.hasButton() this.pd = data.pd }).catch((e) => { this.listLoading = false @@ -341,16 +341,16 @@ export default { this.$parent.FIRE_RECORD_ID = FIRE_RECORD_ID }, hasButton: function() { - var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel' + var keys = 'firefightingrecord:add,firefightingrecord:del,firefightingrecord:edit,toExcel' requestFN( '/head/hasButton', { keys: keys } ).then((data) => { - this.add = data.checkrecordfhadminadd // 新增权限 - this.del = data.checkrecordfhadmindel // 删除权限 - this.edit = data.checkrecordfhadminedit // 修改权限 + this.add = data.firefightingrecordfhadminadd // 新增权限 + this.del = data.firefightingrecordfhadmindel // 删除权限 + this.edit = data.firefightingrecordfhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/firefighting/record/components/recordList.vue b/src/views/firefighting/record/components/recordList.vue index c10fe85..be34d36 100644 --- a/src/views/firefighting/record/components/recordList.vue +++ b/src/views/firefighting/record/components/recordList.vue @@ -209,16 +209,16 @@ export default { this.$parent.activeName = 'List' }, hasButton: function() { - var keys = 'checkrecord:add,checkrecord:del,checkrecord:edit,toExcel' + var keys = 'firefightingrecord:add,firefightingrecord:del,firefightingrecord:edit,toExcel' requestFN( '/head/hasButton', { keys: keys } ).then((data) => { - this.add = data.checkrecordfhadminadd // 新增权限 - this.del = data.checkrecordfhadmindel // 删除权限 - this.edit = data.checkrecordfhadminedit // 修改权限 + this.add = data.firefightingrecordfhadminadd // 新增权限 + this.del = data.firefightingrecordfhadmindel // 删除权限 + this.edit = data.firefightingrecordfhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/firefighting/region/components/list.vue b/src/views/firefighting/region/components/list.vue index 1e79e13..1c398fb 100644 --- a/src/views/firefighting/region/components/list.vue +++ b/src/views/firefighting/region/components/list.vue @@ -53,21 +53,21 @@ @click="handleEdit(row.FIRE_REGION_ID,row.STATE)">编辑 删除 禁用
- 新增 - 批量删除 + 新增 + 批量删除
{ - this.add = data.listmanagerfhadminadd // 新增权限 - this.del = data.listmanagerfhadmindel // 删除权限 - this.edit = data.listmanagerfhadminedit // 修改权限 + this.add = data.firefightingregionfhadminadd // 新增权限 + this.del = data.firefightingregionfhadmindel // 删除权限 + this.edit = data.firefightingregionfhadminedit // 修改权限 this.toExcel = data.toExcel // 导出到excel权限 }).catch((e) => { this.listLoading = false diff --git a/src/views/hidden/deferred/components/list.vue b/src/views/hidden/deferred/components/list.vue index 82e93fa..7d1123c 100644 --- a/src/views/hidden/deferred/components/list.vue +++ b/src/views/hidden/deferred/components/list.vue @@ -92,7 +92,7 @@ diff --git a/src/views/hidden/major/confirmationperson/components/list.vue b/src/views/hidden/major/confirmationperson/components/list.vue index 8698885..35213f4 100644 --- a/src/views/hidden/major/confirmationperson/components/list.vue +++ b/src/views/hidden/major/confirmationperson/components/list.vue @@ -137,7 +137,7 @@ --> diff --git a/src/views/hidden/major/deputydirectorverify/components/list.vue b/src/views/hidden/major/deputydirectorverify/components/list.vue index e4f057a..9365b13 100644 --- a/src/views/hidden/major/deputydirectorverify/components/list.vue +++ b/src/views/hidden/major/deputydirectorverify/components/list.vue @@ -137,7 +137,7 @@ --> diff --git a/src/views/hidden/specialdisposal/components/list.vue b/src/views/hidden/specialdisposal/components/list.vue index fb0dfac..9382c97 100644 --- a/src/views/hidden/specialdisposal/components/list.vue +++ b/src/views/hidden/specialdisposal/components/list.vue @@ -94,7 +94,7 @@ diff --git a/src/views/hiddenApi/publicMethod/list.vue b/src/views/hiddenApi/publicMethod/list.vue index 36431e6..330f6e4 100644 --- a/src/views/hiddenApi/publicMethod/list.vue +++ b/src/views/hiddenApi/publicMethod/list.vue @@ -179,15 +179,15 @@ 整改 申请延期 验收 - 编辑 - 删除 + 编辑 + 删除 删除
- 新增 + 新增
diff --git a/src/views/keyprojects/outsourced/components/list.vue b/src/views/keyprojects/outsourced/components/list.vue index 2947c14..ea06b18 100644 --- a/src/views/keyprojects/outsourced/components/list.vue +++ b/src/views/keyprojects/outsourced/components/list.vue @@ -145,9 +145,9 @@ diff --git a/src/views/keyprojects/personnelmanagement/index.vue b/src/views/keyprojects/personnelmanagement/index.vue index b8f3c3e..289893b 100644 --- a/src/views/keyprojects/personnelmanagement/index.vue +++ b/src/views/keyprojects/personnelmanagement/index.vue @@ -7,13 +7,6 @@ - - - - - - - @@ -76,7 +69,7 @@ diff --git a/src/views/keyprojects/units/components/list.vue b/src/views/keyprojects/units/components/list.vue index a8cef13..1bbd61f 100644 --- a/src/views/keyprojects/units/components/list.vue +++ b/src/views/keyprojects/units/components/list.vue @@ -7,13 +7,6 @@ - - - - - - - diff --git a/src/views/keyprojects/videoinfomanager/components/list.vue b/src/views/keyprojects/videoinfomanager/components/list.vue index 0698f0f..a4e634c 100644 --- a/src/views/keyprojects/videoinfomanager/components/list.vue +++ b/src/views/keyprojects/videoinfomanager/components/list.vue @@ -63,14 +63,14 @@