From 907cace3e0c506c8e637ccb96949816ac9767066 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Wed, 1 Sep 2021 11:01:07 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E6=88=B7=E7=BB=84=E5=92=8C?= =?UTF-8?q?=E6=9D=83=E9=99=90):=20=E6=81=A2=E5=A4=8D=E7=94=A8=E4=BE=8B?= =?UTF-8?q?=E3=80=81=E5=AF=B9=E6=AF=94=E6=8A=A5=E5=91=8A=E3=80=81=E5=AE=9A?= =?UTF-8?q?=E6=97=B6=E5=90=8C=E6=AD=A5=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?= =?UTF-8?q?#1002086?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --story=1002086 --user=lyh 【Bug转需求】【用户组和权限】-组织管理员权限列表中更新最新添加功能标签 https://www.tapd.cn/55049933/s/1042573 --- .../db/migration/V94__v1.12.1_release.sql | 15 +++++++++++++++ backend/src/main/resources/permission.json | 15 +++++++++++++++ .../components/module/ApiModuleHeader.vue | 2 +- .../report/PerformanceTestReportList.vue | 2 +- .../track/case/components/TestCaseList.vue | 4 +++- 5 files changed, 35 insertions(+), 3 deletions(-) diff --git a/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql b/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql index cd3bcc3062..5645d05730 100644 --- a/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql +++ b/backend/src/main/resources/db/migration/V94__v1.12.1_release.sql @@ -1,3 +1,18 @@ -- 更新资源池 UPDATE test_resource_pool SET backend_listener = 1; + +# permission +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_admin', 'PROJECT_TRACK_CASE:READ+RECOVER', 'PROJECT_TRACK_CASE'); +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_admin', 'PROJECT_API_DEFINITION:READ+TIMING_SYNC', 'PROJECT_API_DEFINITION'); +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_admin', 'PROJECT_PERFORMANCE_REPORT:READ+COMPARE', 'PROJECT_PERFORMANCE_REPORT'); + +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_member', 'PROJECT_TRACK_CASE:READ+RECOVER', 'PROJECT_TRACK_CASE'); +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_member', 'PROJECT_API_DEFINITION:READ+TIMING_SYNC', 'PROJECT_API_DEFINITION'); +insert into user_group_permission (id, group_id, permission_id, module_id) +values (UUID(), 'project_member', 'PROJECT_PERFORMANCE_REPORT:READ+COMPARE', 'PROJECT_PERFORMANCE_REPORT'); diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 75812240ca..c51c2f4e80 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -455,6 +455,11 @@ "name": "导出用例", "resourceId": "PROJECT_TRACK_CASE" }, + { + "id": "PROJECT_TRACK_CASE:READ+RECOVER", + "name": "恢复用例", + "resourceId": "PROJECT_TRACK_CASE" + }, { "id": "PROJECT_TRACK_REVIEW:READ", "name": "查询评审", @@ -635,6 +640,11 @@ "name": "导出接口", "resourceId": "PROJECT_API_DEFINITION" }, + { + "id": "PROJECT_API_DEFINITION:READ+TIMING_SYNC", + "name": "定时同步", + "resourceId": "PROJECT_API_DEFINITION" + }, { "id": "PROJECT_API_DEFINITION:READ+CREATE_PERFORMANCE", "name": "创建性能测试", @@ -790,6 +800,11 @@ "name": "导出报告", "resourceId": "PROJECT_PERFORMANCE_REPORT" }, + { + "id": "PROJECT_PERFORMANCE_REPORT:READ+COMPARE", + "name": "对比报告", + "resourceId": "PROJECT_PERFORMANCE_REPORT" + }, { "id": "PROJECT_REPORT_ANALYSIS:READ", "name": "查看", diff --git a/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue b/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue index 37f472b1f0..20e6048e9c 100644 --- a/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue +++ b/frontend/src/business/components/api/definition/components/module/ApiModuleHeader.vue @@ -65,7 +65,7 @@ export default { callback: () => { this.$emit('schedule'); }, - permissions: ['PROJECT_API_DEFINITION:READ+IMPORT_API'] + permissions: ['PROJECT_API_DEFINITION:READ+TIMING_SYNC'] }, { label: this.$t('api_test.api_import.label'), diff --git a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue index 028279107b..0a6b4fd1b9 100644 --- a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue +++ b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue @@ -108,7 +108,7 @@ v-permission="['PROJECT_PERFORMANCE_REPORT:READ']" @exec="handleView(scope.row)" type="primary"/>