fix(系统设置): 用户组和权限-项目管理员用户组的权限修改

--bug=1018496 --user=李玉号 【系统设置】用户组和权限-项目管理员用户组的权限修改汇总
https://www.tapd.cn/55049933/s/1275139
This commit is contained in:
shiziyuan9527 2022-10-24 18:59:32 +08:00 committed by 刘瑞斌
parent ad742034b5
commit 0944f37ffe
7 changed files with 40 additions and 7 deletions

View File

@ -113,7 +113,7 @@
v-show="!scope.row.isSet" v-show="!scope.row.isSet"
@click="deleteRowTask(scope.$index,scope.row)" @click="deleteRowTask(scope.$index,scope.row)"
:tip="$t('commons.delete')" :tip="$t('commons.delete')"
v-permission="['PROJECT_MESSAGE:READ+EDIT']"/> v-permission="['PROJECT_MESSAGE:READ+DELETE']"/>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@ -2501,6 +2501,7 @@ const message = {
create: "CREATE", create: "CREATE",
edit: "EDIT", edit: "EDIT",
delete: "DELETE", delete: "DELETE",
batch_delete: "BATCH DELETE",
}, },
system_user: { system_user: {
name: "User", name: "User",
@ -2573,6 +2574,7 @@ const message = {
name: "Message", name: "Message",
read: "READ", read: "READ",
edit: "EDIT", edit: "EDIT",
delete: "DELETE"
}, },
project_template: { project_template: {
name: "Template", name: "Template",

View File

@ -2509,6 +2509,7 @@ const message = {
create: "创建误报", create: "创建误报",
edit: "修改误报", edit: "修改误报",
delete: "刪除误报", delete: "刪除误报",
batch_delete: "批量刪除误报",
}, },
system_user: { system_user: {
name: "用户", name: "用户",
@ -2580,7 +2581,8 @@ const message = {
project_message: { project_message: {
name: "消息设置", name: "消息设置",
read: "查询", read: "查询",
edit: "编辑" edit: "编辑",
delete: "删除"
}, },
project_template: { project_template: {
name: "模版设置", name: "模版设置",
@ -2588,7 +2590,7 @@ const message = {
case_template: "用例模版", case_template: "用例模版",
issue_template: "缺陷模版", issue_template: "缺陷模版",
api_template: "接口模版", api_template: "接口模版",
custom: "自定义字段" custom: "模版字段"
}, },
workspace_project_manager: { workspace_project_manager: {
name: "项目管理", name: "项目管理",
@ -2638,7 +2640,7 @@ const message = {
setting_permission: "设置权限", setting_permission: "设置权限",
}, },
project_environment: { project_environment: {
name: "环境设置", name: "项目环境",
read: "查询环境", read: "查询环境",
create: "创建环境", create: "创建环境",
edit: "编辑环境", edit: "编辑环境",
@ -2699,7 +2701,7 @@ const message = {
}, },
project_app_manager: { project_app_manager: {
name: "应用设置", name: "应用管理",
edit: "编辑应用设置" edit: "编辑应用设置"
}, },
project_track_plan: { project_track_plan: {

View File

@ -2506,6 +2506,7 @@ const message = {
create: "創建誤報", create: "創建誤報",
edit: "修改誤報", edit: "修改誤報",
delete: "刪除誤報", delete: "刪除誤報",
batch_delete: "批量刪除誤報",
}, },
system_user: { system_user: {
name: "用戶", name: "用戶",
@ -2577,7 +2578,8 @@ const message = {
project_message: { project_message: {
name: "消息設置", name: "消息設置",
read: "查詢", read: "查詢",
edit: "編輯" edit: "編輯",
delete: "刪除"
}, },
project_template: { project_template: {
name: "模版設置", name: "模版設置",

View File

@ -170,6 +170,11 @@
"name": "permission.project_message.edit", "name": "permission.project_message.edit",
"resourceId": "PROJECT_MESSAGE" "resourceId": "PROJECT_MESSAGE"
}, },
{
"id": "PROJECT_MESSAGE:READ+DELETE",
"name": "permission.project_message.delete",
"resourceId": "PROJECT_MESSAGE"
},
{ {
"id": "PROJECT_CUSTOM_CODE:READ", "id": "PROJECT_CUSTOM_CODE:READ",
"name": "permission.project_custom_code.read", "name": "permission.project_custom_code.read",
@ -248,6 +253,12 @@
"name": "permission.project_error_report_library.delete", "name": "permission.project_error_report_library.delete",
"resourceId": "PROJECT_ERROR_REPORT_LIBRARY", "resourceId": "PROJECT_ERROR_REPORT_LIBRARY",
"license": true "license": true
},
{
"id": "PROJECT_ERROR_REPORT_LIBRARY:READ+BATCH_DELETE",
"name": "permission.project_error_report_library.batch_delete",
"resourceId": "PROJECT_ERROR_REPORT_LIBRARY",
"license": true
} }
], ],
"resource": [ "resource": [

View File

@ -124,7 +124,7 @@ export default {
buttons: [{ buttons: [{
name: this.$t('api_test.definition.request.batch_delete'), name: this.$t('api_test.definition.request.batch_delete'),
handleClick: this.handleBatchDelete, handleClick: this.handleBatchDelete,
permissions: ['PROJECT_ERROR_REPORT_LIBRARY:READ+DELETE'] permissions: ['PROJECT_ERROR_REPORT_LIBRARY:READ+BATCH_DELETE']
}], }],
selectNodeIds: [], selectNodeIds: [],
screenHeight: 'calc(100vh - 150px)',// screenHeight: 'calc(100vh - 150px)',//

View File

@ -17,3 +17,19 @@ INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
SELECT UUID(), id, 'WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG', 'WORKSPACE_PROJECT_MANAGER' SELECT UUID(), id, 'WORKSPACE_PROJECT_MANAGER:READ+ENVIRONMENT_CONFIG', 'WORKSPACE_PROJECT_MANAGER'
FROM `group` FROM `group`
WHERE type = 'WORKSPACE'; WHERE type = 'WORKSPACE';
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
SELECT UUID(), id, 'PROJECT_MESSAGE:READ+DELETE', 'PROJECT_MESSAGE'
FROM `group`
WHERE type = 'PROJECT'
and `group`.id in (select group_id from user_group_permission where permission_id = 'PROJECT_MESSAGE:READ');
INSERT INTO user_group_permission (id, group_id, permission_id, module_id)
SELECT UUID(), id, 'PROJECT_ERROR_REPORT_LIBRARY:READ+BATCH_DELETE', 'PROJECT_ERROR_REPORT_LIBRARY'
FROM `group`
WHERE type = 'PROJECT'
and `group`.id in
(select group_id from user_group_permission where permission_id = 'PROJECT_ERROR_REPORT_LIBRARY:READ');