diff --git a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue index 047a256..efba60c 100644 --- a/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue +++ b/src/views/standardRegulationLibrary/marketRegulationsList/MarketRegulationsList.vue @@ -144,6 +144,12 @@ export default { const roleList = [...adminRoleList, ...superAdminRoleList] const userRoleList = this.userInfo.roleCode.split(',') return userRoleList.some(tt => roleList.includes(tt)) + }, + // 是否是超级管理员 + isSuperAdmin () { + const superAdminRoleList = window._CONFIG.superAdminRoleCode.split(',') + const userRoleList = this.userInfo.roleCode.split(',') + return userRoleList.some(tt => superAdminRoleList.includes(tt)) } }, data () { @@ -241,9 +247,9 @@ export default { text: this.$t('delete'), clickEvent: 'handleDelete', has: 'marketStandard:deleteBatch', - // 只有作者和管理员可以删除 + // 只有作者和超级管理员可以删除 show: (record) => { - return this.isAdmin || this.userInfo.id === record.author + return this.isSuperAdmin || this.userInfo.id === record.author } } ],