From d198e086b49bf6a55397b5db52b0d26bfc0b109f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Mon, 5 Feb 2024 16:59:55 +0800 Subject: [PATCH] fix 81810 --- .../profileCenter/ProfileCenterList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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