|
|
@@ -253,10 +253,10 @@ export default {
|
|
|
// 页面切换时改变计时状态
|
|
|
document.addEventListener('visibilitychange', this.handlePageChange)
|
|
|
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: {
|
|
|
getUserName (data) {
|