From 1eb8c972385273bdc596706a9fb38e8860e84980 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Tue, 25 May 2021 19:26:39 +0800 Subject: [PATCH 1/8] =?UTF-8?q?fix:=20=E5=9C=8B=E9=9A=9B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/lang/en.js | 2 ++ frontend/src/lang/tw.js | 2 ++ frontend/src/lang/zh.js | 2 ++ frontend/src/views/panel/GrantAuth/dept/index.vue | 2 +- frontend/src/views/panel/GrantAuth/role/index.vue | 4 ++-- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/src/lang/en.js b/frontend/src/lang/en.js index 21ece828dd..5dfb189195 100644 --- a/frontend/src/lang/en.js +++ b/frontend/src/lang/en.js @@ -815,6 +815,8 @@ export default { input_limit_0_50: '0-50 chars' }, panel: { + no_auth_role: 'Unshared roles', + auth_role: 'Shared roles', picture_limit: 'Only pictures can be inserted', drag_here: 'Please drag the left field here', copy_link_passwd: 'Copy link and password', diff --git a/frontend/src/lang/tw.js b/frontend/src/lang/tw.js index 3d88a4efd5..83386d5d25 100644 --- a/frontend/src/lang/tw.js +++ b/frontend/src/lang/tw.js @@ -814,6 +814,8 @@ export default { input_limit_0_50: '0-50字符' }, panel: { + no_auth_role: '未分享角色', + auth_role: '已分享角色', picture_limit: '只能插入圖片', drag_here: '請將左側字段拖至此處', copy_link_passwd: '複製鏈接及密碼', diff --git a/frontend/src/lang/zh.js b/frontend/src/lang/zh.js index 673e9832f5..35526b5896 100644 --- a/frontend/src/lang/zh.js +++ b/frontend/src/lang/zh.js @@ -816,6 +816,8 @@ export default { input_limit_0_50: '0-50字符' }, panel: { + no_auth_role: '未分享角色', + auth_role: '已分享角色', picture_limit: '只能插入图片', drag_here: '请将左侧字段拖至此处', copy_link_passwd: '复制链接及密码', diff --git a/frontend/src/views/panel/GrantAuth/dept/index.vue b/frontend/src/views/panel/GrantAuth/dept/index.vue index 83fb58d7d0..dc2778b9fd 100644 --- a/frontend/src/views/panel/GrantAuth/dept/index.vue +++ b/frontend/src/views/panel/GrantAuth/dept/index.vue @@ -162,7 +162,7 @@ export default { const rows = this.$refs.table.store.states.selection const request = this.buildRequest(rows) saveShare(request).then(res => { - this.$success('保存成功') + this.$success(this.$t('commons.save_success')) return true }).catch(err => { this.$error(err.message) diff --git a/frontend/src/views/panel/GrantAuth/role/index.vue b/frontend/src/views/panel/GrantAuth/role/index.vue index dbb2881a04..1af7f475d3 100644 --- a/frontend/src/views/panel/GrantAuth/role/index.vue +++ b/frontend/src/views/panel/GrantAuth/role/index.vue @@ -33,9 +33,9 @@ export default { data() { return { data: [], - defaultHeadName: '全部', + defaultHeadName: this.$t('commons.all'), columnLabel: null, - filter_options: [{ text: '未分享角色', value: 0 }, { text: '已分享角色', value: 1 }], + filter_options: [{ text: this.$t('panel.no_auth_role'), value: 0 }, { text: this.$t('panel.auth_role'), value: 1 }], fieldName: 'name', type: 1, // 类型1代表角色 shares: [] From 946b1e52b8d277e02dc10f151371c41b26b7e07d Mon Sep 17 00:00:00 2001 From: junjie Date: Wed, 26 May 2021 10:18:25 +0800 Subject: [PATCH 2/8] feat(frontend):UI fix --- frontend/src/views/system/user/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/system/user/index.vue b/frontend/src/views/system/user/index.vue index 45066f269f..b9cf9605d1 100644 --- a/frontend/src/views/system/user/index.vue +++ b/frontend/src/views/system/user/index.vue @@ -14,7 +14,7 @@ - + From 6602da80a636e336313eec54607f539986728b42 Mon Sep 17 00:00:00 2001 From: taojinlong Date: Wed, 26 May 2021 10:30:39 +0800 Subject: [PATCH 3/8] =?UTF-8?q?fix:=20=E6=95=B0=E6=8D=AE=E6=BA=90=E5=8A=A0?= =?UTF-8?q?=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/io/dataease/config/MybatisConfig.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/backend/src/main/java/io/dataease/config/MybatisConfig.java b/backend/src/main/java/io/dataease/config/MybatisConfig.java index c56f901d2d..b152f8dcca 100644 --- a/backend/src/main/java/io/dataease/config/MybatisConfig.java +++ b/backend/src/main/java/io/dataease/config/MybatisConfig.java @@ -1,10 +1,7 @@ package io.dataease.config; import com.github.pagehelper.PageInterceptor; -import io.dataease.base.domain.ApiTestReportDetail; -import io.dataease.base.domain.AuthSource; -import io.dataease.base.domain.FileContent; -import io.dataease.base.domain.TestResource; +import io.dataease.base.domain.*; import io.dataease.commons.utils.CompressUtils; import io.dataease.commons.utils.MybatisInterceptorConfig; import io.dataease.interceptor.MybatisInterceptor; @@ -45,7 +42,7 @@ public class MybatisConfig { List configList = new ArrayList<>(); configList.add(new MybatisInterceptorConfig(FileContent.class, "file", CompressUtils.class, "zip", "unzip")); configList.add(new MybatisInterceptorConfig(ApiTestReportDetail.class, "content", CompressUtils.class, "compress", "decompress")); - configList.add(new MybatisInterceptorConfig(TestResource.class, "configuration")); + configList.add(new MybatisInterceptorConfig(Datasource.class, "configuration")); configList.add(new MybatisInterceptorConfig(AuthSource.class, "configuration")); interceptor.setInterceptorConfigList(configList); return interceptor; From e6bb1895ac9ed173210763f9c4dff85f0fd35da1 Mon Sep 17 00:00:00 2001 From: junjie Date: Wed, 26 May 2021 10:33:05 +0800 Subject: [PATCH 4/8] feat(frontend):UI fix --- frontend/src/views/panel/enshrine/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/views/panel/enshrine/index.vue b/frontend/src/views/panel/enshrine/index.vue index 646a68beba..795e995e5f 100644 --- a/frontend/src/views/panel/enshrine/index.vue +++ b/frontend/src/views/panel/enshrine/index.vue @@ -11,7 +11,7 @@