You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/05/17 07:07:39 UTC
[dolphinscheduler] branch 3.0.0-beta-prepare updated: [Cherry Pick][Fix][UI] Fix in the Chinese state, there is a problem with the multi-language support of the form. (#10072)
This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch 3.0.0-beta-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/3.0.0-beta-prepare by this push:
new e3fd25d5e2 [Cherry Pick][Fix][UI] Fix in the Chinese state, there is a problem with the multi-language support of the form. (#10072)
e3fd25d5e2 is described below
commit e3fd25d5e2452cc42a2ea93cc8bb1a68cb5a8d99
Author: songjianet <17...@qq.com>
AuthorDate: Tue May 17 15:07:32 2022 +0800
[Cherry Pick][Fix][UI] Fix in the Chinese state, there is a problem with the multi-language support of the form. (#10072)
---
.../src/views/security/tenant-manage/components/use-modalData.ts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/dolphinscheduler-ui/src/views/security/tenant-manage/components/use-modalData.ts b/dolphinscheduler-ui/src/views/security/tenant-manage/components/use-modalData.ts
index 331573c56a..bd3c00bfc8 100644
--- a/dolphinscheduler-ui/src/views/security/tenant-manage/components/use-modalData.ts
+++ b/dolphinscheduler-ui/src/views/security/tenant-manage/components/use-modalData.ts
@@ -23,11 +23,13 @@ import {
createTenant,
updateTenant
} from '@/service/modules/tenants'
+import { useI18n } from 'vue-i18n'
export function useModalData(
props: any,
ctx: SetupContext<('cancelModal' | 'confirmModal')[]>
) {
+ const { t } = useI18n()
const variables = reactive({
tenantFormRef: ref(),
model: {
@@ -40,7 +42,12 @@ export function useModalData(
saving: false,
rules: {
tenantCode: {
- required: true
+ required: true,
+ validator() {
+ if (!variables.model.tenantCode) {
+ return new Error(t('security.tenant.tenant_code_tips'))
+ }
+ }
},
queueId: {
required: true