From 97e83114476725d206b3a7c13071957ee1120f13 Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Tue, 2 Jul 2024 17:03:44 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=A4=96=E6=9D=A5=E6=A0=87=E5=87=86?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E7=9A=84=E9=99=90=E5=88=B6=E5=8E=BB=E6=8E=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../foreignStandard/ForeignStandardList.vue | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue b/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue index 103ddeb..eb188a5 100644 --- a/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue +++ b/src/views/standardRegulationLibrary/foreignStandard/ForeignStandardList.vue @@ -312,12 +312,6 @@ export default { ...mapGetters(['userInfo']), importExcelUrl () { return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}` - }, - // 当前用户是否管理员 - isAdmin () { - const adminRoleList = window._CONFIG.adminRoleCode.split(',') - const userRoleList = this.userInfo.roleCode.split(',') - return userRoleList.some(tt => adminRoleList.includes(tt)) } }, created () { @@ -660,36 +654,13 @@ export default { modalLoading.destroy() }) }, - /** - * 新增-非管理员用户跳转流程发起页面,不能修改操作类型 - */ + // 新增 handleAdd () { - if (!this.isAdmin) { - this.$router.push({ - path: '/workCenter/StandardEntryOrChangeProcess', - query: { - source: StandardSource.Foreign.value, // 外来标准 - operateType: OperationType.ENTRY.value // 入库 - } - }) - return - } this.$refs.modalForm.add() this.$refs.modalForm.title = this.$t('newlyAdded') this.$refs.modalForm.disableSubmit = false }, handleEdit (record) { - if (!this.isAdmin) { - this.$router.push({ - path: '/workCenter/StandardEntryOrChangeProcess', - query: { - source: StandardSource.Foreign.value, // 外来标准 - operateType: OperationType.CHANGE.value, // 变更 - standardId: record.id // 标准id - } - }) - return - } this.$refs.modalForm.edit(record) this.$refs.modalForm.title = this.$t('edit') this.$refs.modalForm.disableSubmit = false