From 646e2e565a3f4b8f8539261634b08a335eb46861 Mon Sep 17 00:00:00 2001 From: wangruidong <940853815@qq.com> Date: Wed, 6 Nov 2024 15:54:18 +0800 Subject: [PATCH] perf: Translate --- .../Apps/VariableCreateUpdateForm/index.vue | 13 +++---------- src/components/Apps/VariableSetForm/index.vue | 8 ++------ src/views/ops/Job/components/loadTemplateLink.vue | 4 +--- .../ops/Template/components/AddVariableDialog.vue | 4 ---- src/views/ops/Template/components/Variable.vue | 4 ++-- 5 files changed, 8 insertions(+), 25 deletions(-) diff --git a/src/components/Apps/VariableCreateUpdateForm/index.vue b/src/components/Apps/VariableCreateUpdateForm/index.vue index 3d685c903..c411dd22f 100644 --- a/src/components/Apps/VariableCreateUpdateForm/index.vue +++ b/src/components/Apps/VariableCreateUpdateForm/index.vue @@ -17,10 +17,6 @@ export default { AutoDataForm }, props: { - asset: { - type: Object, - default: null - }, variable: { type: Object, default: () => ({}) @@ -28,18 +24,15 @@ export default { }, data() { return { - loading: true, - usernameChanged: false, submitBtnText: this.$t('Confirm'), url: '/api/v1/ops/variable/', form: Object.assign({ 'on_invalid': 'error' }, this.variable || {}), - encryptedFields: ['password_default_value'], fields: [ ['', ['name', 'var_name', 'type', 'text_default_value', 'select_default_value', 'extra_args', 'tips', 'required']] ], fieldsMeta: { text_default_value: { - label: this.$t('Default Value'), + label: this.$t('DefaultValue'), hidden: (formValue) => { return formValue.type !== 'text' }, @@ -48,7 +41,7 @@ export default { } }, select_default_value: { - label: this.$t('Default Value'), + label: this.$t('DefaultValue'), hidden: (formValue) => { return formValue.type !== 'select' }, @@ -58,7 +51,7 @@ export default { hidden: (formValue) => { return formValue.type !== 'select' }, - el: { type: 'textarea', rows: 4, placeholder: this.$t('每行一个选项,例如:\n选项1:值1\n选项2:值2\n') } + el: { type: 'textarea', rows: 4, placeholder: this.$t('ExtraArgsPlaceholder') } } }, hasSaveContinue: false, diff --git a/src/components/Apps/VariableSetForm/index.vue b/src/components/Apps/VariableSetForm/index.vue index 291b5008e..9a6c92c3f 100644 --- a/src/components/Apps/VariableSetForm/index.vue +++ b/src/components/Apps/VariableSetForm/index.vue @@ -1,7 +1,7 @@