From 7c2bffa1a495cc4a3a263f654c08c231009c5c4e Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期四, 02 四月 2026 10:59:45 +0800
Subject: [PATCH] #i18n
---
rsf-design/src/views/manager/task/taskPage.helpers.js | 21 +++++++++++----------
1 files changed, 11 insertions(+), 10 deletions(-)
diff --git a/rsf-design/src/views/manager/task/taskPage.helpers.js b/rsf-design/src/views/manager/task/taskPage.helpers.js
index bf7eb7c..c002b57 100644
--- a/rsf-design/src/views/manager/task/taskPage.helpers.js
+++ b/rsf-design/src/views/manager/task/taskPage.helpers.js
@@ -1,4 +1,5 @@
import { ElMessageBox } from 'element-plus'
+import { $t } from '@/locales'
function normalizeText(value) {
return String(value ?? '').trim()
@@ -97,19 +98,19 @@
return [
{
key: 'view',
- label: '鏌ョ湅璇︽儏',
+ label: $t('pages.task.actions.view'),
icon: 'ri:eye-line'
},
{
key: 'flowStep',
- label: '娴佺▼姝ラ',
+ label: $t('pages.task.actions.flowStep'),
icon: 'ri:node-tree'
},
...(row.canComplete
? [
{
key: 'complete',
- label: '瀹屾垚浠诲姟',
+ label: $t('pages.task.actions.complete'),
icon: 'ri:checkbox-circle-line',
auth: 'update'
}
@@ -119,7 +120,7 @@
? [
{
key: 'check',
- label: '鐩樼偣鍑哄簱',
+ label: $t('pages.task.actions.check'),
icon: 'ri:file-check-line',
auth: 'update'
}
@@ -129,7 +130,7 @@
? [
{
key: 'pick',
- label: '鎷f枡鍑哄簱',
+ label: $t('pages.task.actions.pick'),
icon: 'ri:paint-line',
auth: 'update'
}
@@ -139,7 +140,7 @@
? [
{
key: 'top',
- label: '浠诲姟缃《',
+ label: $t('pages.task.actions.top'),
icon: 'ri:pushpin-line',
auth: 'update'
}
@@ -149,7 +150,7 @@
? [
{
key: 'remove',
- label: '鍙栨秷浠诲姟',
+ label: $t('pages.task.actions.remove'),
icon: 'ri:close-circle-line',
color: '#f56c6c',
auth: 'delete'
@@ -160,9 +161,9 @@
}
export async function confirmTaskAction(message) {
- await ElMessageBox.confirm(message, '鎻愮ず', {
+ await ElMessageBox.confirm(message, $t('crud.confirm.deleteTitle'), {
type: 'warning',
- confirmButtonText: '纭畾',
- cancelButtonText: '鍙栨秷'
+ confirmButtonText: $t('common.confirm'),
+ cancelButtonText: $t('common.cancel')
})
}
--
Gitblit v1.9.1