diff --git a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue index 1ac71d93..781773e4 100644 --- a/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue +++ b/src/views/standardRegulationLibrary/profileCenter/ProfileCenterList.vue @@ -379,7 +379,7 @@ export default { handleDownload ({ id, fileName }) { downloadFile(`/laws/dataCenter/lawsDataCenterFile/download?id=${id}`, fileName) }, - hasManagePermission ({ authManageIds }) { + hasManagePermission ({ authManageIds, ownerId }) { const adminRoleList = window._CONFIG.adminRoleCode.split(',') const userRoleList = this.userInfo.roleCode.split(',') const isAdmin = userRoleList.some(tt => adminRoleList.includes(tt)) @@ -387,7 +387,7 @@ export default { return true } const authManageArr = (authManageIds || '').split(',') - if (authManageArr.includes(this.userInfo.id)) { + if (authManageArr.includes(this.userInfo.id) || ownerId === this.userInfo.id) { return true } return false