From 44687ab2031a0b002fc30df09de72e8c10cc7415 Mon Sep 17 00:00:00 2001 From: dearlin <1261008090@qq.com> Date: Wed, 29 Nov 2023 11:03:41 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E6=9D=83=E9=99=90=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reviewevaluate/components/list.vue | 24 +++++++++++++-- .../promise/components/list.vue | 29 +++++++++++++++---- .../promise_book/components/list.vue | 29 +++++++++++++++---- src/views/xgf/audit/components/list.vue | 10 +++---- src/views/xgf/flow_audit/index.vue | 21 +++++++++++++- .../xgf/insert/components/corpInfoList.vue | 11 +++---- 6 files changed, 100 insertions(+), 24 deletions(-) diff --git a/src/views/evaluate/reviewevaluate/components/list.vue b/src/views/evaluate/reviewevaluate/components/list.vue index 68407c2..346981b 100644 --- a/src/views/evaluate/reviewevaluate/components/list.vue +++ b/src/views/evaluate/reviewevaluate/components/list.vue @@ -68,8 +68,8 @@
- 兑换 - 发布 + 兑换 + 发布
@@ -87,7 +87,7 @@ @@ -123,6 +123,9 @@ export default { // 页面参数 dialogTableVisible: false, // 兑换统计列表隐藏 listLoading: false, // 是否加载 + add: false, // 新增权限 + del: false, // 删除权限 + edit: false, // 修改权限 listQuery: { page: 1, limit: 20 @@ -170,6 +173,21 @@ export default { this.listLoading = false }) }, + hasButton: function() { + var keys = 'reviewevaluate:add,reviewevaluate:del,reviewevaluate:edit,toExcel' + requestFN( + '/head/hasButton', + { + keys: keys + } + ).then((data) => { + this.add = data.reviewevaluatefhadminadd // 新增权限 + this.del = data.reviewevaluatefhadmindel // 删除权限 + this.edit = data.reviewevaluatefhadminedit // 修改权限 + }).catch((e) => { + this.listLoading = false + }) + }, // 获取参数列表 getParam() { this.listLoading = true diff --git a/src/views/security_commitment/promise/components/list.vue b/src/views/security_commitment/promise/components/list.vue index 9e51cb6..47c4b6f 100644 --- a/src/views/security_commitment/promise/components/list.vue +++ b/src/views/security_commitment/promise/components/list.vue @@ -43,16 +43,16 @@
- 新增 + 新增
@@ -77,6 +77,9 @@ export default { }, total: 0, KEYWORDS: '', + add: false, // 新增权限 + del: false, // 删除权限 + edit: false, // 修改权限 varList: [], dialog: { visible: false, @@ -86,6 +89,7 @@ export default { }, created() { this.getList() + this.hasButton() }, methods: { // 搜索 @@ -149,6 +153,21 @@ export default { this.dialog.visible = true }) }, + hasButton: function() { + var keys = 'promise:add,promise:del,promise:edit,toExcel' + requestFN( + '/head/hasButton', + { + keys: keys + } + ).then((data) => { + this.add = data.promisefhadminadd // 新增权限 + this.del = data.promisefhadmindel // 删除权限 + this.edit = data.promisefhadminedit // 修改权限 + }).catch((e) => { + this.listLoading = false + }) + }, handleDelete(id) { this.$confirm('确定要删除吗?', { confirmButtonText: '确定', diff --git a/src/views/security_commitment/promise_book/components/list.vue b/src/views/security_commitment/promise_book/components/list.vue index 1c80b01..073c9f8 100644 --- a/src/views/security_commitment/promise_book/components/list.vue +++ b/src/views/security_commitment/promise_book/components/list.vue @@ -87,17 +87,17 @@
- 新增 + 新增
@@ -118,6 +118,9 @@ export default { page: 1, limit: 20 }, + add: false, // 新增权限 + del: false, // 删除权限 + edit: false, // 修改权限 total: 0, KEYWORDS: '', LEVEL: '', @@ -138,6 +141,7 @@ export default { this.getTreeData() this.getLevel() this.getEditMyInfo() + this.hasButton() }, methods: { @@ -207,6 +211,21 @@ export default { this.listLoading = false }) }, + hasButton: function() { + var keys = 'promisebook:add,promisebook:del,promisebook:edit,toExcel' + requestFN( + '/head/hasButton', + { + keys: keys + } + ).then((data) => { + this.add = data.promisebookfhadminadd // 新增权限 + this.del = data.promisebookfhadmindel // 删除权限 + this.edit = data.promisebookfhadminedit // 修改权限 + }).catch((e) => { + this.listLoading = false + }) + }, goEnableOrDisable(STATE, PROMISE_ID) { this.$confirm(`确定要${STATE === '1' ? '禁用' : '启用'}当前承诺书吗?`, { type: 'warning' diff --git a/src/views/xgf/audit/components/list.vue b/src/views/xgf/audit/components/list.vue index f325bae..9f123d9 100644 --- a/src/views/xgf/audit/components/list.vue +++ b/src/views/xgf/audit/components/list.vue @@ -108,7 +108,7 @@ @@ -392,16 +392,16 @@ export default { // 判断按钮权限,用于是否显示按钮 hasButton: function() { - var keys = 'units:add,units:del,units:edit,toExcel' + var keys = 'xgfaudit:add,xgfaudit:del,xgfaudit:edit,toExcel' requestFN( '/head/hasButton', { keys: keys } ).then((data) => { - this.add = data.unitsfhadminadd // 新增权限 - this.del = data.unitsfhadmindel // 删除权限 - this.edit = data.unitsfhadminedit // 修改权限 + this.add = data.xgfauditfhadminadd // 新增权限 + this.del = data.xgfauditfhadmindel // 删除权限 + this.edit = data.xgfauditfhadminedit // 修改权限 }).catch((e) => { this.listLoading = false }) diff --git a/src/views/xgf/flow_audit/index.vue b/src/views/xgf/flow_audit/index.vue index 4284de7..f3c1cb1 100644 --- a/src/views/xgf/flow_audit/index.vue +++ b/src/views/xgf/flow_audit/index.vue @@ -65,7 +65,7 @@ @@ -100,6 +100,9 @@ export default { }, total: 0, varList: [], + add: false, + del: false, + edit: false, XGF_NAME: '', dates: [], statusList: [{ value: 0, label: '股份公司待审核' }, { value: 1, label: '分公司待审核' }, { value: 2, label: '培训中' }, { value: 3, label: '培训完成' }, { value: -1, label: '股份公司审核未通过' }, { value: -2, label: '分公司审核未通过' }], @@ -108,6 +111,7 @@ export default { }, created() { this.getList() + this.hasButton() }, methods: { getQuery() { @@ -124,6 +128,21 @@ export default { this.AUDIT_STATUS = '' this.getQuery() }, + hasButton: function() { + var keys = 'flowaudit:add,flowaudit:del,flowaudit:edit,toExcel' + requestFN( + '/head/hasButton', + { + keys: keys + } + ).then((data) => { + this.add = data.flowauditfhadminadd // 新增权限 + this.del = data.flowauditfhadmindel // 删除权限 + this.edit = data.flowauditfhadminedit // 修改权限 + }).catch((e) => { + this.listLoading = false + }) + }, getList() { this.listLoading = true requestFN( diff --git a/src/views/xgf/insert/components/corpInfoList.vue b/src/views/xgf/insert/components/corpInfoList.vue index 0658c9d..c2b2f06 100644 --- a/src/views/xgf/insert/components/corpInfoList.vue +++ b/src/views/xgf/insert/components/corpInfoList.vue @@ -98,7 +98,7 @@ @@ -198,6 +198,7 @@ export default { this.getList() this.getDict() this.getTreeList() + this.hasButton() }, methods: { onChange(value) { @@ -299,16 +300,16 @@ export default { }, // 判断按钮权限,用于是否显示按钮 hasButton: function() { - var keys = 'relevantunits:add,relevantunits:del,relevantunits:edit,toExcel' + var keys = 'xgfinsert:add,xgfinsert:del,xgfinsert:edit,toExcel' requestFN( '/head/hasButton', { keys: keys } ).then((data) => { - this.add = data.corpinfofhadminadd // 新增权限 - this.del = data.corpinfofhadmindel // 删除权限 - this.edit = data.corpinfofhadminedit // 修改权限 + this.add = data.xgfinsertfhadminadd // 新增权限 + this.del = data.xgfinsertfhadmindel // 删除权限 + this.edit = data.xgfinsertfhadminedit // 修改权限 }).catch((e) => { this.listLoading = false })