From e17a89e1514a2ae66eef801957682d1f78a0d87f Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Thu, 8 Jan 2026 12:34:47 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=90=8E=E5=8F=B0=E5=9B=BD?= =?UTF-8?q?=E9=99=85=E5=8C=96=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/dictionary/checkConfig/index.vue | 99 +++++++++++++------ .../dictionary/newdictionary/bool/index.vue | 34 ++++--- .../components/DictionaryChild.vue | 35 ++++--- .../DictionaryChildAddOrUpdateForm.vue | 24 +++-- .../components/DictionaryTypeConfigForm.vue | 34 ++++--- .../dictionary/newdictionary/enum/index.vue | 34 ++++--- src/views/dictionary/newdictionary/index.vue | 15 ++- .../components/DictionaryTypeConfigForm.vue | 32 +++--- .../dictionary/newdictionary/list/index.vue | 56 +++++++---- .../dictionary/newdictionary/select/index.vue | 39 ++++---- .../setting/DictionaryTypeConfigForm.vue | 16 +-- .../newdictionary/setting/index.vue | 26 ++--- 12 files changed, 278 insertions(+), 166 deletions(-) diff --git a/src/views/dictionary/checkConfig/index.vue b/src/views/dictionary/checkConfig/index.vue index 8c6776fc..647bbd3c 100644 --- a/src/views/dictionary/checkConfig/index.vue +++ b/src/views/dictionary/checkConfig/index.vue @@ -1,75 +1,118 @@ @@ -90,7 +94,7 @@ export default { this.btnLoading = true addOrUpdateBasicDic(this.form).then(res => { this.btnLoading = false - this.$message.success('Saved successfully!') + this.$message.success(this.$t('common:message:savedSuccessfully')) this.model_cfg.visible = false this.$emit('getList') }).catch(() => { diff --git a/src/views/dictionary/newdictionary/components/DictionaryTypeConfigForm.vue b/src/views/dictionary/newdictionary/components/DictionaryTypeConfigForm.vue index 2894fc9b..c71de15a 100644 --- a/src/views/dictionary/newdictionary/components/DictionaryTypeConfigForm.vue +++ b/src/views/dictionary/newdictionary/components/DictionaryTypeConfigForm.vue @@ -7,8 +7,9 @@ :rules="rules" label-width="120px" size="small" - > - + > + + - + + - + + - + + - + + - + + @@ -103,8 +113,8 @@ export default { btnLoading: false, form: formDataDefault(), rules: { - Code: [{ required: true, message: 'Please specify', trigger: 'blur' }], - DataTypeEnum: [{ required: true, message: 'Please specify', trigger: 'blur' }] + Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }], + DataTypeEnum: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }] }, model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true } } @@ -132,7 +142,7 @@ export default { this.btnLoading = true addOrUpdateBasicDic(this.form).then(res => { this.btnLoading = false - this.$message.success('Saved successfully!') + this.$message.success(this.$t('common:message:savedSuccessfully')) this.model_cfg.visible = false this.$emit('getList') }).catch(() => { diff --git a/src/views/dictionary/newdictionary/enum/index.vue b/src/views/dictionary/newdictionary/enum/index.vue index bbe12851..9eb7d3b8 100644 --- a/src/views/dictionary/newdictionary/enum/index.vue +++ b/src/views/dictionary/newdictionary/enum/index.vue @@ -3,11 +3,11 @@ - + - + @@ -174,7 +176,7 @@ export default { switchChange(event, item) { this.loading = true addOrUpdateBasicDic(item).then(res => { - this.$message.success('Saved successfully!') + this.$message.success(this.$t('common:message:savedSuccessfully')) this.loading = false }).catch(() => { this.loading = false @@ -182,12 +184,12 @@ export default { }, handleEdit(row) { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row) }) }, handleAdd() { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', { DataTypeEnum: 2 }) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), { DataTypeEnum: 2 }) }) }, handleDelete(row) { diff --git a/src/views/dictionary/newdictionary/index.vue b/src/views/dictionary/newdictionary/index.vue index 36487488..8344a58a 100644 --- a/src/views/dictionary/newdictionary/index.vue +++ b/src/views/dictionary/newdictionary/index.vue @@ -1,19 +1,24 @@ @@ -103,8 +113,8 @@ export default { btnLoading: false, form: formDataDefault(), rules: { - Code: [{ required: true, message: 'Please specify', trigger: 'blur' }], - DataTypeEnum: [{ required: true, message: 'Please specify', trigger: 'blur' }] + Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }], + DataTypeEnum: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }] }, model_cfg: { visible: false, showClose: true, width: '600px', title: '', appendToBody: true } } @@ -130,7 +140,7 @@ export default { this.btnLoading = true addOrUpdateBasicDic(this.form).then(res => { this.btnLoading = false - this.$message.success('Saved successfully!') + this.$message.success(this.$t('common:message:savedSuccessfully')) this.model_cfg.visible = false this.$emit('getList') }).catch(() => { diff --git a/src/views/dictionary/newdictionary/list/index.vue b/src/views/dictionary/newdictionary/list/index.vue index 4feb8daf..5a79b581 100644 --- a/src/views/dictionary/newdictionary/list/index.vue +++ b/src/views/dictionary/newdictionary/list/index.vue @@ -3,15 +3,18 @@ + + + + + - + + - + @@ -201,17 +219,17 @@ export default { }, handleEdit(row) { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row) }) }, handleAdd() { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', {}) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), {}) }) }, handleBatchAdd() { this.$nextTick(() => { - this.$refs['batchAddForm'].openDialog('批量新建', {}) + this.$refs['batchAddForm'].openDialog(this.$t('common:button:batchNew'), {}) }) }, handleDelete(row) { diff --git a/src/views/dictionary/newdictionary/select/index.vue b/src/views/dictionary/newdictionary/select/index.vue index e711047a..7cde36b8 100644 --- a/src/views/dictionary/newdictionary/select/index.vue +++ b/src/views/dictionary/newdictionary/select/index.vue @@ -3,11 +3,11 @@ - + - + @@ -175,7 +180,7 @@ export default { switchChange(event, item) { this.loading = true addOrUpdateBasicDic(item).then(res => { - this.$message.success('Saved successfully!') + this.$message.success(this.$t('common:message:savedSuccessfully')) this.loading = false }).catch(() => { this.loading = false @@ -183,12 +188,12 @@ export default { }, handleEdit(row) { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row) }) }, handleAdd() { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', { DataTypeEnum: 1 }) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), { DataTypeEnum: 1 }) }) }, handleDelete(row) { diff --git a/src/views/dictionary/newdictionary/setting/DictionaryTypeConfigForm.vue b/src/views/dictionary/newdictionary/setting/DictionaryTypeConfigForm.vue index f161f92c..a7405a81 100644 --- a/src/views/dictionary/newdictionary/setting/DictionaryTypeConfigForm.vue +++ b/src/views/dictionary/newdictionary/setting/DictionaryTypeConfigForm.vue @@ -8,13 +8,13 @@ label-width="150px" size="small" > - + - + - + @@ -52,7 +56,7 @@ export default { btnLoading: false, form: formDataDefault(), rules: { - Code: [{ required: true, message: 'Please specify', trigger: 'blur' }] + Code: [{ required: true, message: this.$t('common:ruleMessage:specify'), trigger: 'blur' }] }, model_cfg: { visible: false, showClose: true, width: '600px', title: '' } } diff --git a/src/views/dictionary/newdictionary/setting/index.vue b/src/views/dictionary/newdictionary/setting/index.vue index 55fdf533..ee1291e7 100644 --- a/src/views/dictionary/newdictionary/setting/index.vue +++ b/src/views/dictionary/newdictionary/setting/index.vue @@ -3,10 +3,10 @@ - + - + @@ -115,7 +117,7 @@ export default { switchChange(event, item) { this.loading = true addOrUpdateBasicDic(item).then(res => { - this.$message.success('Saved successfully!') + this.$message.success(this.$t('common:message:savedSuccessfully')) this.loading = false }).catch(() => { this.loading = false @@ -123,12 +125,12 @@ export default { }, handleEdit(row) { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', row) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:action:edit'), row) }) }, handleAdd() { this.$nextTick(() => { - this.$refs['DictionaryTypeConfigForm'].openDialog('DictionaryTypeConfig', {}) + this.$refs['DictionaryTypeConfigForm'].openDialog(this.$t('common:button:new'), {}) }) }, handleDelete(row) {