fix 81765
This commit is contained in:
@@ -380,16 +380,13 @@ export default {
|
|||||||
downloadFile(`/laws/dataCenter/lawsDataCenterFile/download?id=${id}`, fileName)
|
downloadFile(`/laws/dataCenter/lawsDataCenterFile/download?id=${id}`, fileName)
|
||||||
},
|
},
|
||||||
hasManagePermission ({ authManageIds }) {
|
hasManagePermission ({ authManageIds }) {
|
||||||
if (!authManageIds) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
const adminRoleList = window._CONFIG.adminRoleCode.split(',')
|
const adminRoleList = window._CONFIG.adminRoleCode.split(',')
|
||||||
const userRoleList = this.userInfo.roleCode.split(',')
|
const userRoleList = this.userInfo.roleCode.split(',')
|
||||||
const isAdmin = userRoleList.some(tt => adminRoleList.includes(tt))
|
const isAdmin = userRoleList.some(tt => adminRoleList.includes(tt))
|
||||||
if (isAdmin) {
|
if (isAdmin) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
const authManageArr = authManageIds.split(',')
|
const authManageArr = (authManageIds || '').split(',')
|
||||||
if (authManageArr.includes(this.userInfo.id)) {
|
if (authManageArr.includes(this.userInfo.id)) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user