fix(系统设置): 项目管理没有上传jar包的权限,但是上传后不显示

--bug=1007506 --user=lyh
【系统设置】项目管理没有上传jar包的权限,但是上传后不显示
https://www.tapd.cn/55049933/s/1062972
This commit is contained in:
shiziyuan9527 2021-11-02 14:18:57 +08:00 committed by shiziyuan9527
parent aade7f1409
commit 6c3f0ddc9d
3 changed files with 12 additions and 2 deletions

View File

@ -1 +1,6 @@
ALTER TABLE mock_expect_config ADD COLUMN expect_num varchar(50);
ALTER TABLE mock_expect_config ADD COLUMN expect_num varchar(50);
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'ws_admin', 'WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR', 'WORKSPACE_PROJECT_MANAGER');
insert into user_group_permission (id, group_id, permission_id, module_id)
values (UUID(), 'ws_member', 'WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR', 'WORKSPACE_PROJECT_MANAGER');

View File

@ -195,6 +195,11 @@
"name": "删除项目",
"resourceId": "WORKSPACE_PROJECT_MANAGER"
},
{
"id": "WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR",
"name": "上传jar包",
"resourceId": "WORKSPACE_PROJECT_MANAGER"
},
{
"id": "WORKSPACE_PROJECT_ENVIRONMENT:READ",
"name": "查询环境",

View File

@ -6,7 +6,7 @@
@search="search" @create="create"
:create-tip="btnTips" :title="$t('commons.project')">
<template v-slot:button>
<ms-table-button icon="el-icon-box"
<ms-table-button icon="el-icon-box" v-permission="['WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR']"
:content="$t('api_test.jar_config.title')" @click="openJarConfig"/>
</template>
</ms-table-header>