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/operation-record/operationRecordTable.columns.js |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/rsf-design/src/views/system/operation-record/operationRecordTable.columns.js b/rsf-design/src/views/system/operation-record/operationRecordTable.columns.js
index 24f270f..1e7799a 100644
--- a/rsf-design/src/views/system/operation-record/operationRecordTable.columns.js
+++ b/rsf-design/src/views/system/operation-record/operationRecordTable.columns.js
@@ -2,56 +2,59 @@
 import { ElTag } from 'element-plus'
 import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue'
 
-export function createOperationRecordTableColumns({ handleView, handleDelete }) {
+export function createOperationRecordTableColumns({ t, handleView, handleDelete }) {
   return [
     {
       prop: 'namespace',
-      label: '鍚嶇О绌洪棿',
+      label: t('pages.system.operationRecord.table.namespace'),
       minWidth: 180,
       showOverflowTooltip: true
     },
     {
       prop: 'url',
-      label: '鎺ュ彛鍦板潃',
+      label: t('pages.system.operationRecord.table.url'),
       minWidth: 240,
       showOverflowTooltip: true,
       formatter: (row) => row.url || '-'
     },
     {
       prop: 'userLabel',
-      label: '鎿嶄綔鐢ㄦ埛',
+      label: t('pages.system.operationRecord.table.user'),
       minWidth: 140,
       formatter: (row) => row.userLabel || '-'
     },
     {
       prop: 'clientIp',
-      label: '瀹㈡埛绔疘P',
+      label: t('pages.system.operationRecord.table.clientIp'),
       minWidth: 140,
       formatter: (row) => row.clientIp || '-'
     },
     {
       prop: 'spendTime',
-      label: '鑰楁椂(ms)',
+      label: t('pages.system.operationRecord.table.spendTime'),
       width: 110,
       formatter: (row) => row.spendTime ?? '-'
     },
     {
       prop: 'result',
-      label: '缁撴灉',
+      label: t('pages.system.operationRecord.table.result'),
       width: 100,
-      formatter: (row) => h(ElTag, { type: row.resultType, effect: 'light' }, () => row.resultText || '-')
+      formatter: (row) =>
+        h(ElTag, { type: row.resultType, effect: 'light' }, () =>
+          row.resultTextKey ? t(row.resultTextKey) : row.resultText || '-'
+        )
     },
     {
       prop: 'timestampText',
-      label: '鎿嶄綔鏃堕棿',
+      label: t('pages.system.operationRecord.table.timestamp'),
       minWidth: 180,
       formatter: (row) => row.timestampText || '-'
     },
     {
       prop: 'operation',
-      label: '鎿嶄綔',
+      label: t('table.operation'),
       width: handleDelete ? 120 : 70,
-      align: 'right',
+      align: 'center',
       formatter: (row) => {
         const buttons = [
           h(ArtButtonTable, {
@@ -69,7 +72,7 @@
           )
         }
 
-        return h('div', { class: 'flex justify-end' }, buttons)
+        return h('div', { class: 'flex justify-center' }, buttons)
       }
     }
   ]

--
Gitblit v1.9.1