diff --git a/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue b/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue index dad08b71ed..016ef64744 100644 --- a/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue +++ b/frontend/src/views/project-management/projectAndPermission/userGroup/projectUserGroup.vue @@ -178,7 +178,7 @@ return authRef.value?.canSave; }); - const userGroupcolumns: MsTableColumn = [ + const userGroupPermissionColumns: MsTableColumn = [ { title: 'project.userGroup.name', dataIndex: 'name', @@ -201,6 +201,28 @@ }, ]; + const userGroupNoPermissionColumns: MsTableColumn = [ + { + title: 'project.userGroup.name', + dataIndex: 'name', + slotName: 'name', + showTooltip: true, + }, + { + title: 'project.userGroup.memberCount', + slotName: 'memberCount', + showDrag: true, + dataIndex: 'memberCount', + }, + { + title: 'common.operation', + slotName: 'operation', + dataIndex: 'operation', + fixed: 'right', + width: 150, + }, + ]; + const handleNameChange = async (record: UserGroupItem) => { try { await updateOrAddProjectUserGroup(record); @@ -215,7 +237,9 @@ postUserGroupList, { tableKey: TableKeyEnum.PROJECT_USER_GROUP, - columns: userGroupcolumns, + columns: hasAnyPermission(['PROJECT_GROUP:READ+UPDATE']) + ? userGroupPermissionColumns + : userGroupNoPermissionColumns, selectable: false, scroll: { x: '100%' }, noDisable: true,