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/matnr-group/matnrGroupTable.columns.js | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js b/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js
index 8720615..4e44086 100644
--- a/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js
+++ b/rsf-design/src/views/basic-info/matnr-group/matnrGroupTable.columns.js
@@ -1,4 +1,5 @@
import { h } from 'vue'
+import { $t } from '@/locales'
import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue'
export function createMatnrGroupTableColumns({
@@ -8,14 +9,14 @@
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 [
@@ -26,26 +27,26 @@
},
{
prop: 'code',
- label: '鍒嗙粍缂栫爜',
+ label: $t('pages.basicInfo.matnrGroup.table.code'),
minWidth: 160,
showOverflowTooltip: true
},
{
prop: 'parCode',
- label: '涓婄骇缂栫爜',
+ label: $t('pages.basicInfo.matnrGroup.table.parentCode'),
minWidth: 160,
showOverflowTooltip: true,
formatter: (row) => row.parCode || '--'
},
{
prop: 'name',
- label: '鍒嗙粍鍚嶇О',
+ label: $t('pages.basicInfo.matnrGroup.table.name'),
minWidth: 240,
showOverflowTooltip: true
},
{
prop: 'operation',
- label: '鎿嶄綔',
+ label: $t('table.operation'),
width: 120,
align: 'center',
fixed: 'right',
--
Gitblit v1.9.1