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/dictTypeTable.columns.js |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js b/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js
index 5426adc..a0c5190 100644
--- a/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js
+++ b/rsf-design/src/views/system/dict-type/dictTypeTable.columns.js
@@ -1,51 +1,53 @@
 import { h } from 'vue'
 import { ElTag } from 'element-plus'
 import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue'
+import { $t } from '@/locales'
 
-export function createDictTypeTableColumns({ handleView, handleEdit, handleDelete }) {
+export function createDictTypeTableColumns({ handleView, handleEdit, handleDelete, t = $t }) {
   return [
     {
       prop: 'code',
-      label: '缂栫爜',
+      label: t('table.code'),
       minWidth: 180,
       showOverflowTooltip: true
     },
     {
       prop: 'name',
-      label: '鍚嶇О',
+      label: t('table.name'),
       minWidth: 180,
       showOverflowTooltip: true
     },
     {
       prop: 'description',
-      label: '鎻忚堪',
+      label: t('pages.system.dictType.table.description'),
       minWidth: 220,
       showOverflowTooltip: true,
-      formatter: (row) => row.description || '-'
+      formatter: (row) => row.description || t('common.placeholder.empty')
     },
     {
       prop: 'status',
-      label: '鐘舵��',
+      label: t('table.status'),
       width: 100,
-      formatter: (row) => h(ElTag, { type: row.statusType, effect: 'light' }, () => row.statusText || '-')
+      formatter: (row) =>
+        h(ElTag, { type: row.statusType, effect: 'light' }, () => row.statusText || t('common.placeholder.empty'))
     },
     {
       prop: 'updateByLabel',
-      label: '鏇存柊浜�',
+      label: t('table.updateBy'),
       width: 120,
-      formatter: (row) => row.updateByLabel || '-'
+      formatter: (row) => row.updateByLabel || t('common.placeholder.empty')
     },
     {
       prop: 'updateTimeText',
-      label: '鏇存柊鏃堕棿',
+      label: t('table.updateTime'),
       minWidth: 180,
-      formatter: (row) => row.updateTimeText || '-'
+      formatter: (row) => row.updateTimeText || t('common.placeholder.empty')
     },
     {
       prop: 'operation',
-      label: '鎿嶄綔',
+      label: t('table.operation'),
       width: handleDelete ? 160 : 120,
-      align: 'right',
+      align: 'center',
       formatter: (row) => {
         const buttons = [
           h(ArtButtonTable, {
@@ -67,7 +69,7 @@
           )
         }
 
-        return h('div', { class: 'flex justify-end' }, buttons)
+        return h('div', { class: 'flex justify-center' }, buttons)
       }
     }
   ]

--
Gitblit v1.9.1