Browse Source

task-3972 受控文件查阅页面删除权限调整

cfort 1 năm trước cách đây
mục cha
commit
29b89580f1

+ 4 - 4
src/views/component/fileTraining/index.vue

@@ -253,10 +253,10 @@ export default {
         // 页面切换时改变计时状态
         // 页面切换时改变计时状态
         document.addEventListener('visibilitychange', this.handlePageChange)
         document.addEventListener('visibilitychange', this.handlePageChange)
         this.checkDialogBody()
         this.checkDialogBody()
-        const roleKey = ['xtgljs']
-        const curRole = this.role.map(i => i.alias)
-        const isPower = curRole.some(item => roleKey.includes(item))
-        this.deleteShow = !!((isPower || this.isPower))
+        // task-3972 删除权限仅开放给超级用户和文件管理员
+        const roleList = ['wjgly']
+        const isPower = this.role.some(item => roleList.includes(item.alias))
+        this.deleteShow = this.isSuper || isPower
     },
     },
     methods: {
     methods: {
         getUserName (data) {
         getUserName (data) {