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/loc/locTable.columns.js | 41 +++++++++++++++++++++--------------------
1 files changed, 21 insertions(+), 20 deletions(-)
diff --git a/rsf-design/src/views/basic-info/loc/locTable.columns.js b/rsf-design/src/views/basic-info/loc/locTable.columns.js
index 2ea0bcb..537eda2 100644
--- a/rsf-design/src/views/basic-info/loc/locTable.columns.js
+++ b/rsf-design/src/views/basic-info/loc/locTable.columns.js
@@ -1,6 +1,7 @@
import { h } from 'vue'
import { ElTag } from 'element-plus'
import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue'
+import { $t } from '@/locales'
import { getLocStatusMeta, getLocUseStatusMeta } from './locPage.helpers'
function createTextColumn(prop, label, minWidth, formatter) {
@@ -43,37 +44,37 @@
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 [
{ type: 'selection', width: 48, align: 'center' },
- { type: 'globalIndex', label: '搴忓彿', width: 72, align: 'center' },
- createTextColumn('code', '搴撲綅鍙�', 160),
- createTextColumn('warehouseName', '浠撳簱', 150, (row) => row.warehouseName || row.warehouseId$ || '--'),
- createTextColumn('areaName', '搴撳尯', 150, (row) => row.areaName || row.areaId$ || '--'),
- createTextColumn('typeIdsText', '搴撲綅绫诲瀷', 180),
- createNumberColumn('row', '鎺�', 80),
- createNumberColumn('col', '鍒�', 80),
- createNumberColumn('lev', '灞�', 80),
- createNumberColumn('channel', '宸烽亾', 90),
- createTagColumn('useStatus', '浣跨敤鐘舵��', 110, (row) => getLocUseStatusMeta(row.useStatus)),
- createTextColumn('flagLogicText', '铏氭嫙搴撲綅', 110),
- createTextColumn('flagLabelMangeText', '鏍囩绠$悊', 110),
- createTextColumn('barcode', '瀹瑰櫒缂栫爜', 150),
- createTagColumn('status', '鐘舵��', 100, (row) => getLocStatusMeta(row.statusBool ?? row.status)),
- createTextColumn('updateTimeText', '鏇存柊鏃堕棿', 170, (row) => row.updateTimeText || row.updateTime$ || '--'),
- createTextColumn('memo', '澶囨敞', 180),
+ { type: 'globalIndex', label: $t('table.index'), width: 72, align: 'center' },
+ createTextColumn('code', $t('pages.basicInfo.loc.table.code'), 160),
+ createTextColumn('warehouseName', $t('pages.basicInfo.loc.table.warehouseName'), 150, (row) => row.warehouseName || row.warehouseId$ || '--'),
+ createTextColumn('areaName', $t('pages.basicInfo.loc.table.areaName'), 150, (row) => row.areaName || row.areaId$ || '--'),
+ createTextColumn('typeIdsText', $t('pages.basicInfo.loc.table.typeIds'), 180),
+ createNumberColumn('row', $t('pages.basicInfo.loc.table.row'), 80),
+ createNumberColumn('col', $t('pages.basicInfo.loc.table.col'), 80),
+ createNumberColumn('lev', $t('pages.basicInfo.loc.table.lev'), 80),
+ createNumberColumn('channel', $t('pages.basicInfo.loc.table.channel'), 90),
+ createTagColumn('useStatus', $t('pages.basicInfo.loc.table.useStatus'), 110, (row) => getLocUseStatusMeta(row.useStatus)),
+ createTextColumn('flagLogicText', $t('pages.basicInfo.loc.table.flagLogic'), 110),
+ createTextColumn('flagLabelMangeText', $t('pages.basicInfo.loc.table.flagLabelManage'), 110),
+ createTextColumn('barcode', $t('pages.basicInfo.loc.table.barcode'), 150),
+ createTagColumn('status', $t('table.status'), 100, (row) => getLocStatusMeta(row.statusBool ?? row.status)),
+ createTextColumn('updateTimeText', $t('table.updateTime'), 170, (row) => row.updateTimeText || row.updateTime$ || '--'),
+ createTextColumn('memo', $t('table.remark'), 180),
{
prop: 'operation',
- label: '鎿嶄綔',
+ label: $t('table.operation'),
width: 120,
align: 'center',
fixed: 'right',
--
Gitblit v1.9.1