From 56bbba2a422d7c4fb2d6bfb497aeb700157027a9 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 02 四月 2026 16:50:44 +0800
Subject: [PATCH] #
---
rsf-design/src/views/basic-info/task-path-template/taskPathTemplateTable.columns.js | 57 +++++++++++++++++++++++++++++----------------------------
1 files changed, 29 insertions(+), 28 deletions(-)
diff --git a/rsf-design/src/views/basic-info/task-path-template/taskPathTemplateTable.columns.js b/rsf-design/src/views/basic-info/task-path-template/taskPathTemplateTable.columns.js
index 873ab26..3c7e496 100644
--- a/rsf-design/src/views/basic-info/task-path-template/taskPathTemplateTable.columns.js
+++ b/rsf-design/src/views/basic-info/task-path-template/taskPathTemplateTable.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 {
getTaskPathTemplateCurrentMeta,
getTaskPathTemplateStatusMeta
@@ -14,18 +15,18 @@
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 (handleFlow) {
- operations.push({ key: 'flow', label: '娴佺▼鍥�', icon: 'ri:route-line' })
+ operations.push({ key: 'flow', label: $t('pages.basicInfo.taskPathTemplate.actions.flow'), icon: 'ri:route-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 [
@@ -36,55 +37,55 @@
},
{
type: 'globalIndex',
- label: '搴忓彿',
+ label: $t('table.index'),
width: 72,
align: 'center'
},
{
prop: 'templateCode',
- label: '妯℃澘缂栫爜',
+ label: $t('pages.basicInfo.taskPathTemplate.table.templateCode'),
minWidth: 160,
showOverflowTooltip: true,
formatter: (row) => row.templateCode || '--'
},
{
prop: 'templateName',
- label: '妯℃澘鍚嶇О',
+ label: $t('pages.basicInfo.taskPathTemplate.table.templateName'),
minWidth: 180,
showOverflowTooltip: true,
formatter: (row) => row.templateName || '--'
},
{
prop: 'sourceType',
- label: '璧风偣绫诲瀷',
+ label: $t('pages.basicInfo.taskPathTemplate.table.sourceType'),
minWidth: 140,
showOverflowTooltip: true,
formatter: (row) => row.sourceType || '--'
},
{
prop: 'targetType',
- label: '缁堢偣绫诲瀷',
+ label: $t('pages.basicInfo.taskPathTemplate.table.targetType'),
minWidth: 140,
showOverflowTooltip: true,
formatter: (row) => row.targetType || '--'
},
{
prop: 'conditionDesc',
- label: '鏉′欢鎻忚堪',
+ label: $t('pages.basicInfo.taskPathTemplate.table.conditionDesc'),
minWidth: 180,
showOverflowTooltip: true,
formatter: (row) => row.conditionDesc || '--'
},
{
prop: 'version',
- label: '鐗堟湰鍙�',
+ label: $t('pages.basicInfo.taskPathTemplate.table.version'),
width: 100,
align: 'center',
formatter: (row) => row.version ?? '--'
},
{
prop: 'isCurrent',
- label: '褰撳墠鐗堟湰',
+ label: $t('pages.basicInfo.taskPathTemplate.table.isCurrent'),
width: 110,
align: 'center',
formatter: (row) => {
@@ -94,56 +95,56 @@
},
{
prop: 'effectiveTimeText',
- label: '鐢熸晥鏃堕棿',
+ label: $t('pages.basicInfo.taskPathTemplate.table.effectiveTime'),
minWidth: 170,
showOverflowTooltip: true,
formatter: (row) => row.effectiveTimeText || row.effectiveTime$ || '--'
},
{
prop: 'expireTimeText',
- label: '澶辨晥鏃堕棿',
+ label: $t('pages.basicInfo.taskPathTemplate.table.expireTime'),
minWidth: 170,
showOverflowTooltip: true,
formatter: (row) => row.expireTimeText || row.expireTime$ || '--'
},
{
prop: 'priority',
- label: '浼樺厛绾�',
+ label: $t('pages.basicInfo.taskPathTemplate.table.priority'),
width: 90,
align: 'center',
formatter: (row) => row.priority ?? '--'
},
{
prop: 'timeoutMinutes',
- label: '瓒呮椂(鍒�)',
+ label: $t('pages.basicInfo.taskPathTemplate.table.timeoutMinutes'),
width: 110,
align: 'center',
formatter: (row) => row.timeoutMinutes ?? '--'
},
{
prop: 'stepSize',
- label: '姝ュ簭闀垮害',
+ label: $t('pages.basicInfo.taskPathTemplate.table.stepSize'),
width: 110,
align: 'center',
formatter: (row) => row.stepSize ?? '--'
},
{
prop: 'maxRetryTimes',
- label: '鏈�澶ч噸璇�',
+ label: $t('pages.basicInfo.taskPathTemplate.table.maxRetryTimes'),
width: 100,
align: 'center',
formatter: (row) => row.maxRetryTimes ?? '--'
},
{
prop: 'retryIntervalSeconds',
- label: '閲嶈瘯闂撮殧(绉�)',
+ label: $t('pages.basicInfo.taskPathTemplate.table.retryIntervalSeconds'),
width: 120,
align: 'center',
formatter: (row) => row.retryIntervalSeconds ?? '--'
},
{
prop: 'status',
- label: '鐘舵��',
+ label: $t('table.status'),
width: 96,
align: 'center',
formatter: (row) => {
@@ -153,44 +154,44 @@
},
{
prop: 'remark',
- label: '澶囨敞',
+ label: $t('table.remark'),
minWidth: 180,
showOverflowTooltip: true,
formatter: (row) => row.remark || '--'
},
{
prop: 'updateByText',
- label: '鏇存柊浜�',
+ label: $t('table.updateBy'),
minWidth: 120,
showOverflowTooltip: true,
formatter: (row) => row.updateByText || row.updateBy$ || '--'
},
{
prop: 'updateTimeText',
- label: '鏇存柊鏃堕棿',
+ label: $t('table.updateTime'),
minWidth: 170,
showOverflowTooltip: true,
formatter: (row) => row.updateTimeText || row.updateTime$ || '--'
},
{
prop: 'createByText',
- label: '鍒涘缓浜�',
+ label: $t('table.createBy'),
minWidth: 120,
showOverflowTooltip: true,
formatter: (row) => row.createByText || row.createBy$ || '--'
},
{
prop: 'createTimeText',
- label: '鍒涘缓鏃堕棿',
+ label: $t('table.createTime'),
minWidth: 170,
showOverflowTooltip: true,
formatter: (row) => row.createTimeText || row.createTime$ || '--'
},
{
prop: 'operation',
- label: '鎿嶄綔',
- width: 190,
- align: 'right',
+ label: $t('table.operation'),
+ width: 120,
+ align: 'center',
fixed: 'right',
formatter: (row) =>
h(ArtButtonMore, {
--
Gitblit v1.9.1