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/basic-info/contract/contractTable.columns.js | 29 +++++++++++++++--------------
1 files changed, 15 insertions(+), 14 deletions(-)
diff --git a/rsf-design/src/views/basic-info/contract/contractTable.columns.js b/rsf-design/src/views/basic-info/contract/contractTable.columns.js
index df71411..ac165a6 100644
--- a/rsf-design/src/views/basic-info/contract/contractTable.columns.js
+++ b/rsf-design/src/views/basic-info/contract/contractTable.columns.js
@@ -1,16 +1,17 @@
import { h } from 'vue'
import { ElTag } from 'element-plus'
import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue'
+import { $t } from '@/locales'
export function createContractTableColumns({ handleView, handleEdit, handleDelete, canEdit = true, canDelete = true }) {
- const operations = [{ key: 'view', label: '璇︽儏', icon: 'ri:eye-line' }]
+ const operations = [{ key: 'view', label: $t('common.actions.detail'), icon: 'ri:eye-line' }]
if (canEdit && handleEdit) {
- operations.push({ key: 'edit', label: '缂栬緫', icon: 'ri:pencil-line' })
+ operations.push({ key: 'edit', label: $t('common.actions.edit'), icon: 'ri:pencil-line' })
}
if (canDelete && handleDelete) {
- operations.push({ key: 'delete', label: '鍒犻櫎', icon: 'ri:delete-bin-5-line', color: 'var(--art-error)' })
+ operations.push({ key: 'delete', label: $t('common.actions.delete'), icon: 'ri:delete-bin-5-line', color: 'var(--art-error)' })
}
return [
@@ -21,68 +22,68 @@
},
{
type: 'globalIndex',
- label: '搴忓彿',
+ label: $t('table.index'),
width: 72,
align: 'center'
},
{
prop: 'code',
- label: '鍚堝悓缂栫爜',
+ label: $t('pages.basicInfo.contract.table.code'),
minWidth: 160,
showOverflowTooltip: true
},
{
prop: 'name',
- label: '鍚堝悓鍚嶇О',
+ label: $t('pages.basicInfo.contract.table.name'),
minWidth: 180,
showOverflowTooltip: true
},
{
prop: 'projectName',
- label: '椤圭洰鍚嶇О',
+ label: $t('pages.basicInfo.contract.table.projectName'),
minWidth: 180,
showOverflowTooltip: true
},
{
prop: 'status',
- label: '鐘舵��',
+ label: $t('table.status'),
width: 100,
align: 'center',
formatter: (row) => h(ElTag, { type: row.statusType || 'info', effect: 'light' }, () => row.statusText || '--')
},
{
prop: 'updateByText',
- label: '鏇存柊浜�',
+ label: $t('table.updateBy'),
minWidth: 120,
showOverflowTooltip: true
},
{
prop: 'updateTimeText',
- label: '鏇存柊鏃堕棿',
+ label: $t('table.updateTime'),
minWidth: 170,
showOverflowTooltip: true
},
{
prop: 'createByText',
- label: '鍒涘缓浜�',
+ label: $t('table.createBy'),
minWidth: 120,
showOverflowTooltip: true
},
{
prop: 'createTimeText',
- label: '鍒涘缓鏃堕棿',
+ label: $t('table.createTime'),
minWidth: 170,
showOverflowTooltip: true
},
{
prop: 'memo',
- label: '澶囨敞',
+ label: $t('table.remark'),
minWidth: 200,
showOverflowTooltip: true
},
{
prop: 'operation',
- label: '鎿嶄綔',
+ label: $t('table.operation'),
width: 120,
align: 'center',
fixed: 'right',
--
Gitblit v1.9.1