From 9a97abc340c25374e22ef5517d4c9b8f831728bc Mon Sep 17 00:00:00 2001 From: lideqin <694785430@qq.com> Date: Thu, 4 Jul 2024 16:16:09 +0800 Subject: [PATCH] =?UTF-8?q?[update]=20=E5=B8=82=E5=9C=BA=E6=B3=95=E8=A7=84?= =?UTF-8?q?=E6=B8=85=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MarketRegulationsFormPage.vue | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue index 4b3b580..9602e36 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsFormPage.vue @@ -245,6 +245,7 @@ export default { }, computed: { ...mapGetters(['defaultHeight']), + ...mapGetters(['userInfo']), yScrollHeight () { /** * 前几个使用变量是为了配合iframe嵌套,算出页面显示范围的高度 @@ -266,15 +267,12 @@ export default { importExcelUrl: function () { return `${window._CONFIG.domianURL}/${this.url.importExcelUrl}` }, - computed: { - ...mapGetters(['userInfo']), - // 是否可以查看历史版本,当前用户是否是法规管理员或超级管理员 - isCanLookHistory () { - const superAdminRoleCode = window._CONFIG.superAdminRoleCode - const regulationAdminRoleCode = window._CONFIG.regulationAdminRoleCode - const userRoleList = this.userInfo.roleCode.split(',') - return userRoleList.includes(superAdminRoleCode) || userRoleList.includes(regulationAdminRoleCode) - } + // 是否可以查看历史版本,当前用户是否是法规管理员或超级管理员 + isCanLookHistory () { + const superAdminRoleCode = window._CONFIG.superAdminRoleCode + const regulationAdminRoleCode = window._CONFIG.regulationAdminRoleCode + const userRoleList = this.userInfo.roleCode.split(',') + return userRoleList.includes(superAdminRoleCode) || userRoleList.includes(regulationAdminRoleCode) } }, data () {