From c0748f21e4672961bc85be728297e37d31f4d223 Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 4 Dec 2023 08:54:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=9D=9E=E6=8B=85=E4=BF=9D?= =?UTF-8?q?=E8=BF=9B=E5=BA=A6=E7=BB=B4=E6=8A=A4=E3=80=81=E8=B5=84=E6=96=B9?= =?UTF-8?q?=E4=BF=A1=E5=AE=A1=E7=BB=88=E5=AE=A1--=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../managementcreditauditfeedback.vue | 14 +++++++++++++- .../views/unsecuredbusiness/unsecuredbusiness.vue | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditauditfeedback.vue b/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditauditfeedback.vue index 925713cc09..5aec279adb 100644 --- a/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditauditfeedback.vue +++ b/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditauditfeedback.vue @@ -149,6 +149,7 @@ import req from '@/api/managementcreditaudit/managementcreditaudit' import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' +import { getButtonPermissions } from '@/api/Common/dictcommons' export default { name: 'ManagementCreditAuditFeedBack', @@ -210,7 +211,18 @@ export default { } }, mounted() { - this.$refs['btnbar'].setButtonList(this.btnList) + getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => { + if (res.success) { + for (var i = 0; i < res.data.length; i++) { + for (var k = 0; k < this.btnList.length; k++) { + if (res.data[i].buttonId === this.btnList[k].btnKey) { + this.btnList.splice(k, 1) + } + } + } + this.$refs['btnbar'].setButtonList(this.btnList) + } + }) }, methods: { // 搜索条件效果 diff --git a/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue b/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue index 2976c77d13..0299396fc1 100644 --- a/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue +++ b/anrui-riskcenter-ui/src/views/unsecuredbusiness/unsecuredbusiness.vue @@ -107,6 +107,7 @@ import ButtonBar from '@/components/ButtonBar' import req from '@/api/unsecuredbusiness/unsecuredbusiness' import unsecuredbusinessAdd from './unsecuredbusinessAdd' import unsecuredbusinessInfo from './unsecuredbusinessInfo' +import { getButtonPermissions } from '@/api/Common/dictcommons' export default { name: 'UnsecuredBusiness', @@ -181,7 +182,18 @@ export default { this.getList() }, mounted() { - this.$refs['btnbar'].setButtonList(this.btnList) + getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => { + if (res.success) { + for (var i = 0; i < res.data.length; i++) { + for (var k = 0; k < this.btnList.length; k++) { + if (res.data[i].buttonId === this.btnList[k].btnKey) { + this.btnList.splice(k, 1) + } + } + } + this.$refs['btnbar'].setButtonList(this.btnList) + } + }) }, methods: { // 搜索条件效果