fix(系统设置): 增加工作空间环境配置的权限

--bug=1018493 --user=李玉号 【系统设置】用户组和权限-工作空间的权限模型删掉“上传jar包”,缺少“环境配置”权限设置
https://www.tapd.cn/55049933/s/1270997
This commit is contained in:
shiziyuan9527 2022-10-21 15:40:30 +08:00 committed by lyh
parent 26171456ba
commit e02f599081
6 changed files with 11 additions and 3 deletions

View File

@ -2589,6 +2589,7 @@ const message = {
edit: "EDIT",
delete: "DELETE",
upload_jar: "UPLOAD JAR",
environment_config: "ENVIRONMENT CONFIG",
},
workspace_project_environment: {
name: "Environment",

View File

@ -2597,6 +2597,7 @@ const message = {
edit: "编辑项目",
delete: "删除项目",
upload_jar: "上传jar包",
environment_config: "环境配置",
},
workspace_project_environment: {
name: "环境设置",

View File

@ -2594,6 +2594,7 @@ const message = {
edit: "編輯項目",
delete: "刪除項目",
upload_jar: "上傳jar包",
environment_config: "環境配置",
},
workspace_project_environment: {
name: "環境設置",

View File

@ -11,4 +11,9 @@ INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('meter
INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('metersphere.module.setting', 'ENABLE', 'text', 1);
INSERT INTO system_parameter (param_key, param_value, type, sort) VALUES ('base.grid.concurrency', '8', 'text', 1);
DELETE FROM user_group_permission WHERE permission_id = 'WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR';
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
SELECT UUID(), id, 'WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG', 'WORKSPACE_PROJECT_MANAGER'
FROM `group`
WHERE type = 'WORKSPACE';

View File

@ -181,8 +181,8 @@
"resourceId": "WORKSPACE_PROJECT_MANAGER"
},
{
"id": "WORKSPACE_PROJECT_MANAGER:READ+UPLOAD_JAR",
"name": "permission.workspace_project_manager.upload_jar",
"id": "WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG",
"name": "permission.workspace_project_manager.environment_config",
"resourceId": "WORKSPACE_PROJECT_MANAGER"
},
{

View File

@ -70,7 +70,7 @@
@deleteClick="handleDelete(scope.row)">
<template v-slot:behind>
<ms-table-operator-button
v-permission="['WORKSPACE_PROJECT_MANAGER:READ+EDIT']"
v-permission="['WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG']"
:tip="$t('api_test.environment.environment_config')" icon="el-icon-setting"
type="info" @exec="openEnvironmentConfig(scope.row)"/>
</template>