diff --git a/backend/src/main/java/io/metersphere/commons/constants/PermissionConstants.java b/backend/src/main/java/io/metersphere/commons/constants/PermissionConstants.java index 477e320dff..924f8f03f9 100644 --- a/backend/src/main/java/io/metersphere/commons/constants/PermissionConstants.java +++ b/backend/src/main/java/io/metersphere/commons/constants/PermissionConstants.java @@ -80,6 +80,11 @@ public class PermissionConstants { public static final String PROJECT_MANAGER_READ_EDIT = "PROJECT_MANAGER:READ+EDIT"; public static final String PROJECT_MANAGER_READ_DELETE = "PROJECT_MANAGER:READ+DELETE"; + public static final String PROJECT_GROUP_READ = "PROJECT_GROUP:READ"; + public static final String PROJECT_GROUP_READ_CREATE = "PROJECT_GROUP:READ+CREATE"; + public static final String PROJECT_GROUP_READ_EDIT = "PROJECT_GROUP:READ+EDIT"; + public static final String PROJECT_GROUP_READ_DELETE = "PROJECT_GROUP:READ+DELETE"; + public static final String PROJECT_ENVIRONMENT_READ = "PROJECT_ENVIRONMENT:READ"; public static final String PROJECT_ENVIRONMENT_READ_CREATE = "PROJECT_ENVIRONMENT:READ+CREATE"; public static final String PROJECT_ENVIRONMENT_READ_EDIT = "PROJECT_ENVIRONMENT:READ+EDIT"; diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 007d28b0bf..07add6f990 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -285,6 +285,26 @@ "name": "移除成员", "resourceId": "PROJECT_USER" }, + { + "id": "PROJECT_GROUP:READ", + "name": "查询用户组与权限", + "resourceId": "PROJECT_GROUP" + }, + { + "id": "PROJECT_GROUP:READ+CREATE", + "name": "创建用户组与权限", + "resourceId": "PROJECT_GROUP" + }, + { + "id": "PROJECT_GROUP:READ+EDIT", + "name": "编辑用户组与权限", + "resourceId": "PROJECT_GROUP" + }, + { + "id": "PROJECT_GROUP:READ+DELETE", + "name": "删除用户组与权限", + "resourceId": "PROJECT_GROUP" + }, { "id": "PROJECT_MANAGER:READ", "name": "查询项目", @@ -869,6 +889,10 @@ "id": "PROJECT_MANAGER", "name": "项目管理" }, + { + "id": "PROJECT_GROUP", + "name": "用户组与权限" + }, { "id": "PROJECT_ENVIRONMENT", "name": "环境设置" diff --git a/frontend/src/business/components/project/head/ProjectHeaderMenus.vue b/frontend/src/business/components/project/head/ProjectHeaderMenus.vue index e42105f06f..d0d8e813b4 100644 --- a/frontend/src/business/components/project/head/ProjectHeaderMenus.vue +++ b/frontend/src/business/components/project/head/ProjectHeaderMenus.vue @@ -11,7 +11,7 @@ {{ $t('project.member') }} - + {{ $t('project.group_permission') }}
+ @click="click('/project/usergroup', ['PROJECT_GROUP:READ'])">
- + {{ $t('group.group_permission') }}
{{ $t('project.group_desc') }} diff --git a/frontend/src/business/components/project/menu/UserGroup.vue b/frontend/src/business/components/project/menu/UserGroup.vue index 0a9856c581..7c946849af 100644 --- a/frontend/src/business/components/project/menu/UserGroup.vue +++ b/frontend/src/business/components/project/menu/UserGroup.vue @@ -2,7 +2,7 @@