From 50e95b985a72fcec4a93a2470e9efdfb2620148a Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 02 四月 2026 15:46:09 +0800
Subject: [PATCH] #i18n

---
 rsf-design/src/views/system/dict-type/modules/dict-type-dialog.vue |   38 +++++++++++++++++++++-----------------
 1 files changed, 21 insertions(+), 17 deletions(-)

diff --git a/rsf-design/src/views/system/dict-type/modules/dict-type-dialog.vue b/rsf-design/src/views/system/dict-type/modules/dict-type-dialog.vue
index 22abb74..178ddc0 100644
--- a/rsf-design/src/views/system/dict-type/modules/dict-type-dialog.vue
+++ b/rsf-design/src/views/system/dict-type/modules/dict-type-dialog.vue
@@ -21,14 +21,15 @@
 
     <template #footer>
       <span class="dialog-footer">
-        <ElButton @click="handleCancel">鍙栨秷</ElButton>
-        <ElButton type="primary" @click="handleSubmit">纭畾</ElButton>
+        <ElButton @click="handleCancel">{{ t('common.cancel') }}</ElButton>
+        <ElButton type="primary" @click="handleSubmit">{{ t('common.confirm') }}</ElButton>
       </span>
     </template>
   </ElDialog>
 </template>
 
 <script setup>
+  import { useI18n } from 'vue-i18n'
   import ArtForm from '@/components/core/forms/art-form/index.vue'
   import { buildDictTypeDialogModel, createDictTypeFormState } from '../dictTypePage.helpers'
 
@@ -40,66 +41,69 @@
   const emit = defineEmits(['update:visible', 'submit'])
   const formRef = ref()
   const form = reactive(createDictTypeFormState())
+  const { t } = useI18n()
 
   const isEdit = computed(() => Boolean(form.id))
-  const dialogTitle = computed(() => (isEdit.value ? '缂栬緫鏁版嵁瀛楀吀' : '鏂板鏁版嵁瀛楀吀'))
+  const dialogTitle = computed(() =>
+    isEdit.value ? t('pages.system.dictType.dialog.titleEdit') : t('pages.system.dictType.dialog.titleCreate')
+  )
 
   const rules = computed(() => ({
-    code: [{ required: true, message: '璇疯緭鍏ュ瓧鍏哥紪鐮�', trigger: 'blur' }],
-    name: [{ required: true, message: '璇疯緭鍏ュ瓧鍏稿悕绉�', trigger: 'blur' }]
+    code: [{ required: true, message: t('pages.system.dictType.validation.code'), trigger: 'blur' }],
+    name: [{ required: true, message: t('pages.system.dictType.validation.name'), trigger: 'blur' }]
   }))
 
   const formItems = computed(() => [
     {
-      label: '缂栫爜',
+      label: t('table.code'),
       key: 'code',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ュ瓧鍏哥紪鐮�'
+        placeholder: t('pages.system.dictType.placeholders.code')
       }
     },
     {
-      label: '鍚嶇О',
+      label: t('table.name'),
       key: 'name',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ュ瓧鍏稿悕绉�'
+        placeholder: t('pages.system.dictType.placeholders.name')
       }
     },
     {
-      label: '鐘舵��',
+      label: t('table.status'),
       key: 'status',
       type: 'select',
       props: {
         options: [
-          { label: '姝e父', value: 1 },
-          { label: '鍐荤粨', value: 0 }
+          { label: t('common.status.normal'), value: 1 },
+          { label: t('common.status.frozen'), value: 0 }
         ],
-        placeholder: '璇烽�夋嫨鐘舵��'
+        placeholder: t('pages.system.dictType.placeholders.status')
       }
     },
     {
-      label: '鎻忚堪',
+      label: t('pages.system.dictType.table.description'),
       key: 'description',
       type: 'input',
       span: 24,
       props: {
         type: 'textarea',
         rows: 3,
-        placeholder: '璇疯緭鍏ュ瓧鍏告弿杩�'
+        placeholder: t('pages.system.dictType.placeholders.description')
       }
     },
     {
-      label: '澶囨敞',
+      label: t('table.memo'),
       key: 'memo',
       type: 'input',
       span: 24,
       props: {
         type: 'textarea',
         rows: 3,
-        placeholder: '璇疯緭鍏ュ娉�'
+        placeholder: t('pages.system.dictType.placeholders.memo')
       }
     }
   ])

--
Gitblit v1.9.1