fix(接口定义): API列表复制功能隐藏的问题
This commit is contained in:
parent
ee33703457
commit
c943c25c75
|
@ -140,6 +140,7 @@ public class PermissionConstants {
|
|||
public static final String PROJECT_API_DEFINITION_READ_CREATE_API = "PROJECT_API_DEFINITION:READ+CREATE_API";
|
||||
public static final String PROJECT_API_DEFINITION_READ_EDIT_API = "PROJECT_API_DEFINITION:READ+EDIT_API";
|
||||
public static final String PROJECT_API_DEFINITION_READ_DELETE_API = "PROJECT_API_DEFINITION:READ+DELETE_API";
|
||||
public static final String PROJECT_API_DEFINITION_READ_COPY_API = "PROJECT_API_DEFINITION:READ+COPY_API";
|
||||
public static final String PROJECT_API_DEFINITION_READ_CREATE_CASE = "PROJECT_API_DEFINITION:READ+CREATE_CASE";
|
||||
public static final String PROJECT_API_DEFINITION_READ_EDIT_CASE = "PROJECT_API_DEFINITION:READ+EDIT_CASE";
|
||||
public static final String PROJECT_API_DEFINITION_READ_DELETE_CASE = "PROJECT_API_DEFINITION:READ+DELETE_CASE";
|
||||
|
|
|
@ -107,6 +107,8 @@ insert into user_group_permission (id, group_id, permission_id, module_id)
|
|||
values (uuid(), 'project_admin', 'PROJECT_API_REPORT:READ+EXPORT', 'PROJECT_API_REPORT');
|
||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
||||
values (uuid(), 'project_admin', 'PROJECT_PERFORMANCE_REPORT:READ+EXPORT', 'PROJECT_PERFORMANCE_REPORT');
|
||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
||||
values (uuid(), 'project_admin', 'PROJECT_API_DEFINITION:READ+COPY_API', 'PROJECT_API_DEFINITION');
|
||||
|
||||
-- project_member
|
||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
||||
|
@ -129,6 +131,8 @@ insert into user_group_permission (id, group_id, permission_id, module_id)
|
|||
values (uuid(), 'project_member', 'PROJECT_API_REPORT:READ+EXPORT', 'PROJECT_API_REPORT');
|
||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
||||
values (uuid(), 'project_member', 'PROJECT_PERFORMANCE_REPORT:READ+EXPORT', 'PROJECT_PERFORMANCE_REPORT');
|
||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
||||
values (uuid(), 'project_member', 'PROJECT_API_DEFINITION:READ+COPY_API', 'PROJECT_API_DEFINITION');
|
||||
|
||||
-- read_only
|
||||
insert into user_group_permission (id, group_id, permission_id, module_id)
|
||||
|
|
|
@ -594,6 +594,11 @@
|
|||
"name": "删除接口",
|
||||
"resourceId": "PROJECT_API_DEFINITION"
|
||||
},
|
||||
{
|
||||
"id": "PROJECT_API_DEFINITION:READ+COPY_API",
|
||||
"name": "复制接口",
|
||||
"resourceId": "PROJECT_API_DEFINITION"
|
||||
},
|
||||
{
|
||||
"id": "PROJECT_API_DEFINITION:READ+CREATE_CASE",
|
||||
"name": "添加用例",
|
||||
|
|
|
@ -284,7 +284,7 @@ export default {
|
|||
exec: this.handleCopy,
|
||||
icon: "el-icon-document-copy",
|
||||
type: "primary",
|
||||
permissions: ['PROJECT_API_DEFINITION:READ+COPY']
|
||||
permissions: ['PROJECT_API_DEFINITION:READ+COPY_API']
|
||||
},
|
||||
],
|
||||
tableTrashOperatorButtons: [
|
||||
|
|
Loading…
Reference in New Issue