From 2ce173a82a195e81aebe355e77f9c4814b5e1845 Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 2 Nov 2021 14:18:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86=E6=B2=A1=E6=9C=89=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0jar=E5=8C=85=E7=9A=84=E6=9D=83=E9=99=90=EF=BC=8C?= =?UTF-8?q?=E4=BD=86=E6=98=AF=E4=B8=8A=E4=BC=A0=E5=90=8E=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1007506 --user=lyh 【系统设置】项目管理没有上传jar包的权限,但是上传后不显示 https://www.tapd.cn/55049933/s/1062972 --- .../main/resources/db/migration/V98__v1.14.1_release.sql | 7 ++++++- backend/src/main/resources/permission.json | 5 +++++ .../business/components/settings/workspace/MsProject.vue | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/backend/src/main/resources/db/migration/V98__v1.14.1_release.sql b/backend/src/main/resources/db/migration/V98__v1.14.1_release.sql index d2a122cf2f..eef209f193 100644 --- a/backend/src/main/resources/db/migration/V98__v1.14.1_release.sql +++ b/backend/src/main/resources/db/migration/V98__v1.14.1_release.sql @@ -1 +1,6 @@ -ALTER TABLE mock_expect_config ADD COLUMN expect_num varchar(50); \ No newline at end of file +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'); \ No newline at end of file diff --git a/backend/src/main/resources/permission.json b/backend/src/main/resources/permission.json index 4679a87ed2..007d28b0bf 100644 --- a/backend/src/main/resources/permission.json +++ b/backend/src/main/resources/permission.json @@ -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": "查询环境", diff --git a/frontend/src/business/components/settings/workspace/MsProject.vue b/frontend/src/business/components/settings/workspace/MsProject.vue index e1c8b5d518..1b26003aa4 100644 --- a/frontend/src/business/components/settings/workspace/MsProject.vue +++ b/frontend/src/business/components/settings/workspace/MsProject.vue @@ -6,7 +6,7 @@ @search="search" @create="create" :create-tip="btnTips" :title="$t('commons.project')">