diff --git a/backend/src/main/resources/db/migration/V103__v1.16_release.sql b/backend/src/main/resources/db/migration/V103__v1.16_release.sql index dc1ee90a9b..e07f9d8043 100644 --- a/backend/src/main/resources/db/migration/V103__v1.16_release.sql +++ b/backend/src/main/resources/db/migration/V103__v1.16_release.sql @@ -42,11 +42,30 @@ CREATE TABLE IF NOT EXISTS `api_scenario_report_result` CREATE TABLE IF NOT EXISTS `api_scenario_report_structure` ( - `id` varchar(50) NOT NULL COMMENT 'ID', - `report_id` VARCHAR(50) DEFAULT NULL COMMENT '请求资源 id', - `create_time` bigint(13) NULL COMMENT '创建时间', - `resource_tree` longblob DEFAULT NULL COMMENT '资源步骤结构树', + `id` varchar +( + 50 +) NOT NULL COMMENT 'ID', + `report_id` VARCHAR +( + 50 +) DEFAULT NULL COMMENT '请求资源 id', + `create_time` bigint +( + 13 +) NULL COMMENT '创建时间', + `resource_tree` longblob DEFAULT NULL COMMENT '资源步骤结构树', `console` LONGTEXT DEFAULT NULL COMMENT '执行日志', - PRIMARY KEY (`id`), - KEY `index_report_id` (`report_id`) USING BTREE -) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci; + PRIMARY KEY +( + `id` +), + KEY `index_report_id` +( + `report_id` +) USING BTREE + ) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_general_ci; + + +INSERT INTO user_group_permission (id, group_id, permission_id, module_id) +VALUES (UUID(), 'project_app_manager', 'PROJECT_APP_MANAGER:READ+EDIT', 'PROJECT_APP_MANAGER'); diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index ddc58ed2f8..0e3e93e0fd 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -330,6 +330,11 @@ "name": "permission.project_manager.edit", "resourceId": "PROJECT_MANAGER" }, + { + "id": "PROJECT_APP_MANAGER:READ+EDIT", + "name": "编辑应用设置", + "resourceId": "PROJECT_APP_MANAGER" + }, { "id": "PROJECT_ENVIRONMENT:READ", "name": "permission.project_environment.read", @@ -975,6 +980,10 @@ "id": "PROJECT_FILE", "name": "permission.project_file.name" }, + { + "id": "PROJECT_APP_MANAGER", + "name": "应用设置" + }, { "id": "PROJECT_TRACK_CASE", "name": "permission.project_track_case.name" diff --git a/frontend/src/business/components/project/head/ProjectHeaderMenus.vue b/frontend/src/business/components/project/head/ProjectHeaderMenus.vue index b385cf7908..95b400c555 100644 --- a/frontend/src/business/components/project/head/ProjectHeaderMenus.vue +++ b/frontend/src/business/components/project/head/ProjectHeaderMenus.vue @@ -33,7 +33,8 @@ {{ $t('project.version_manage') }} - + {{ $t('project.app_manage') }} @@ -68,20 +69,6 @@ export default { } } }, - created() { - this.$get("/user/group/list/project/" + getCurrentProjectID() + "/" + getCurrentUserId(), res => { - let data = res.data; - if (data) { - data.forEach(row => { - if (row.id === 'project_admin') { - this.isProjectAdmin = false; - } - }) - } else { - this.isProjectAdmin = true; - } - }) - }, methods: { clickPlanMenu() { this.$info(this.$t('commons.function_planning')); diff --git a/frontend/src/business/components/project/home/ProjectHome.vue b/frontend/src/business/components/project/home/ProjectHome.vue index c68824f2c8..d7d0eba569 100644 --- a/frontend/src/business/components/project/home/ProjectHome.vue +++ b/frontend/src/business/components/project/home/ProjectHome.vue @@ -114,6 +114,19 @@ {{ $t('project.log_desc') }} +
+
+ + +
+
+ + {{ $t('project.app_manage') }} +
+ {{ $t('project.app_manage_desc') }} +
+
diff --git a/frontend/src/business/components/project/menu/EditProject.vue b/frontend/src/business/components/project/menu/EditProject.vue index 00bfaa8b8c..d5e4a5dcf4 100644 --- a/frontend/src/business/components/project/menu/EditProject.vue +++ b/frontend/src/business/components/project/menu/EditProject.vue @@ -63,15 +63,6 @@ - - - - - - - - -