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/config/modules/config-dialog.vue |   52 ++++++++++++++++++++++++++++------------------------
 1 files changed, 28 insertions(+), 24 deletions(-)

diff --git a/rsf-design/src/views/system/config/modules/config-dialog.vue b/rsf-design/src/views/system/config/modules/config-dialog.vue
index bb56df3..535f503 100644
--- a/rsf-design/src/views/system/config/modules/config-dialog.vue
+++ b/rsf-design/src/views/system/config/modules/config-dialog.vue
@@ -21,8 +21,8 @@
 
     <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>
@@ -30,6 +30,7 @@
 
 <script setup>
   import ArtForm from '@/components/core/forms/art-form/index.vue'
+  import { useI18n } from 'vue-i18n'
   import { buildConfigDialogModel, createConfigFormState, getConfigTypeOptions } from '../configPage.helpers'
 
   const props = defineProps({
@@ -38,95 +39,98 @@
   })
 
   const emit = defineEmits(['update:visible', 'submit'])
+  const { t } = useI18n()
   const formRef = ref()
   const form = reactive(createConfigFormState())
 
   const isEdit = computed(() => Boolean(form.id))
-  const dialogTitle = computed(() => (isEdit.value ? '缂栬緫閰嶇疆' : '鏂板閰嶇疆'))
+  const dialogTitle = computed(() =>
+    isEdit.value ? t('pages.system.config.dialog.titleEdit') : t('pages.system.config.dialog.titleCreate')
+  )
 
   const rules = computed(() => ({
-    name: [{ required: true, message: '璇疯緭鍏ラ厤缃悕绉�', trigger: 'blur' }],
-    flag: [{ required: true, message: '璇疯緭鍏ラ厤缃爣璇�', trigger: 'blur' }]
+    name: [{ required: true, message: t('pages.system.config.validation.name'), trigger: 'blur' }],
+    flag: [{ required: true, message: t('pages.system.config.validation.flag'), trigger: 'blur' }]
   }))
 
   const formItems = computed(() => [
     {
-      label: '缂栧彿',
+      label: t('table.code'),
       key: 'uuid',
       type: 'input',
       props: {
         disabled: true,
-        placeholder: '鏂板鍚庤嚜鍔ㄧ敓鎴�'
+        placeholder: t('pages.system.config.placeholders.uuid')
       }
     },
     {
-      label: '鍚嶇О',
+      label: t('table.name'),
       key: 'name',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ラ厤缃悕绉�'
+        placeholder: t('pages.system.config.placeholders.name')
       }
     },
     {
-      label: '鏍囪瘑',
+      label: t('pages.system.config.table.flag'),
       key: 'flag',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ラ厤缃爣璇�'
+        placeholder: t('pages.system.config.placeholders.flag')
       }
     },
     {
-      label: '绫诲瀷',
+      label: t('pages.system.config.table.type'),
       key: 'type',
       type: 'select',
       props: {
-        options: getConfigTypeOptions(),
-        placeholder: '璇烽�夋嫨绫诲瀷'
+        options: getConfigTypeOptions(t),
+        placeholder: t('pages.system.config.placeholders.type')
       }
     },
     {
-      label: '鍊�',
+      label: t('pages.system.config.table.value'),
       key: 'val',
       type: 'input',
       props: {
         clearable: true,
-        placeholder: '璇疯緭鍏ラ厤缃��'
+        placeholder: t('pages.system.config.placeholders.value')
       }
     },
     {
-      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.config.placeholders.status')
       }
     },
     {
-      label: '鏂囨湰',
+      label: t('pages.system.config.table.content'),
       key: 'content',
       type: 'input',
       span: 24,
       props: {
         type: 'textarea',
         rows: 3,
-        placeholder: '璇疯緭鍏ラ厤缃枃鏈�'
+        placeholder: t('pages.system.config.placeholders.content')
       }
     },
     {
-      label: '澶囨敞',
+      label: t('table.memo'),
       key: 'memo',
       type: 'input',
       span: 24,
       props: {
         type: 'textarea',
         rows: 3,
-        placeholder: '璇疯緭鍏ュ娉�'
+        placeholder: t('pages.system.config.placeholders.memo')
       }
     }
   ])

--
Gitblit v1.9.1