diff --git a/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue b/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue index 8b9776b3dd..24e7a430a5 100644 --- a/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue +++ b/frontend/src/business/components/settings/workspace/template/CustomFieldEdit.vue @@ -3,7 +3,7 @@ width="30%" :visible.sync="visible" @confirm="save" - :title="$t('custom_field.create')" + :title="title" append-to-body ref="msEditDialog"> @@ -45,7 +45,7 @@ prop="options" :label-width="labelWidth"> @@ -91,7 +91,8 @@ export default { type: [{required: true, trigger: 'change'}], }, visible: false, - url: '' + url: '', + title: this.$t('custom_field.create') }; }, computed: { @@ -123,8 +124,9 @@ export default { } }, methods: { - open(data) { + open(data, title) { this.visible = true; + this.title = title; if (data) { Object.assign(this.form, data); if (!(data.options instanceof Array)) { diff --git a/frontend/src/business/components/settings/workspace/template/CustomFieldList.vue b/frontend/src/business/components/settings/workspace/template/CustomFieldList.vue index bbfa463792..d5f6250109 100644 --- a/frontend/src/business/components/settings/workspace/template/CustomFieldList.vue +++ b/frontend/src/business/components/settings/workspace/template/CustomFieldList.vue @@ -203,10 +203,10 @@ export default { }); }, handleEdit(data) { - this.$refs.customFieldEdit.open(data); + this.$refs.customFieldEdit.open(data, this.$t('custom_field.update')); }, handleCreate() { - this.$refs.customFieldEdit.open(); + this.$refs.customFieldEdit.open(null, this.$t('custom_field.create')); }, handleCopy(data) { let copyData = {}; diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 85a93cce9c..44c6518e36 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -502,6 +502,7 @@ export default { issue_status: 'Status', issue_severity: 'Severity', create: 'Create Field', + update: 'Update Field', name: 'Custom Field', system_field: 'System Field', scene: 'Use Scene', diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index 4612ec4b05..2fde0df262 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -504,6 +504,7 @@ export default { issue_status: '状态', issue_severity: '严重程度', create: '创建字段', + update: '更新字段', name: '自定义字段', system_field: '系统字段', scene: '使用场景', diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index 005b2b43a8..36a25817a4 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -504,6 +504,7 @@ export default { issue_status: '狀態', issue_severity: '嚴重程度', create: '創建字段', + update: '更新字段', name: '自定義字段', system_field: '系統字段', scene: '使用場景',