fix(用户组和权限): 恢复用例、对比报告、定时同步权限控制#1002086
--story=1002086 --user=lyh 【Bug转需求】【用户组和权限】-组织管理员权限列表中更新最新添加功能标签 https://www.tapd.cn/55049933/s/1042573
This commit is contained in:
parent
cc3d45b115
commit
a54e83fdd5
|
@ -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');
|
||||
|
|
|
@ -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": "查看",
|
||||
|
|
|
@ -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'),
|
||||
|
|
|
@ -108,7 +108,7 @@
|
|||
v-permission="['PROJECT_PERFORMANCE_REPORT:READ']"
|
||||
@exec="handleView(scope.row)" type="primary"/>
|
||||
<ms-table-operator-button :tip="$t('load_test.report.diff')" icon="el-icon-s-operation"
|
||||
v-permission="['PROJECT_PERFORMANCE_REPORT:READ']"
|
||||
v-permission="['PROJECT_PERFORMANCE_REPORT:READ+COMPARE']"
|
||||
@exec="handleDiff(scope.row)" type="warning"/>
|
||||
<ms-table-operator-button :tip="$t('api_report.delete')"
|
||||
v-permission="['PROJECT_PERFORMANCE_REPORT:READ+DELETE']"
|
||||
|
|
|
@ -323,7 +323,9 @@ export default {
|
|||
{
|
||||
tip: this.$t('commons.reduction'),
|
||||
icon: "el-icon-refresh-left",
|
||||
exec: this.reduction},
|
||||
exec: this.reduction,
|
||||
permissions: ['PROJECT_TRACK_CASE:READ+RECOVER']
|
||||
},
|
||||
{
|
||||
tip: this.$t('commons.delete'), icon: "el-icon-delete", type: "danger",
|
||||
exec: this.handleDelete,
|
||||
|
|
Loading…
Reference in New Issue