From 7190995f9d43de1f89c0e40484b74fec703d8293 Mon Sep 17 00:00:00 2001
From: pengm <674192343@qq.com>
Date: Tue, 2 Sep 2025 17:29:56 +0800
Subject: [PATCH] 1.增加状态按钮 转产,产品打样,日常保养等英文翻译
---
src/mes/scheduledTasks/machineTasks/index.js | 55 +++++++++++++++++++++++++++++++++----------------------
1 file changed, 33 insertions(+), 22 deletions(-)
diff --git a/src/mes/scheduledTasks/machineTasks/index.js b/src/mes/scheduledTasks/machineTasks/index.js
index 2b2512a..f5802f8 100644
--- a/src/mes/scheduledTasks/machineTasks/index.js
+++ b/src/mes/scheduledTasks/machineTasks/index.js
@@ -775,7 +775,7 @@
{taskInfoData.sStatusNameTitle}:
{taskInfoData.sStatusNameConent}
-
+
@@ -953,38 +953,49 @@
};
// 全屏状态
- const StatusBtnComponent = () => {
+ const StatusBtnComponent = (props) => {
+
+ const test = commonFunc.showLocalMessage(props, 'test', '测试');
+ const switchProduction = commonFunc.showLocalMessage(props, 'switchProduction', '转产');
+ const maintain = commonFunc.showLocalMessage(props, 'maintain', '保养');
+ const productSampling = commonFunc.showLocalMessage(props, 'productSampling', '产品打样');
+ const processTesting = commonFunc.showLocalMessage(props, 'processTesting', '工艺测试');
+ const dailyMaintenance = commonFunc.showLocalMessage(props, 'dailyMaintenance', '日常保养');
+ const firstMaintenance = commonFunc.showLocalMessage(props, 'firstMaintenance', '日常保养');
+ const secondMaintenance = commonFunc.showLocalMessage(props, 'secondMaintenance', '二级保养');
+ const FSMaintenance = commonFunc.showLocalMessage(props, 'FSMaintenance', '一级+二级保养');
+ const annualMaintenance = commonFunc.showLocalMessage(props, 'annualMaintenance', '年度保养');
const items = [
{
key: "4",
- label: 转产,
+ label: {switchProduction},
value: {
- conent2: "转产",
+ conent2: switchProduction,
backgroundColor: "#752AFE"
}
},
{
key: "1",
- label: 测试,
+ label: {test},
value: {
- conent2: "转产",
+ conent2: switchProduction,
backgroundColor: "#21C9FE"
},
children: [
{
key: "1-1",
- label: 产品打样,
+ label: {productSampling},
value: {
- conent2: "产品打样",
+ conent2: processTesting,
backgroundColor: "#21C9FE"
}
},
{
key: "1-2",
- label: 工艺测试,
+ label: {processTesting},
value: {
- conent2: "工艺测试",
+ conent2: processTesting,
backgroundColor: "#21C9FE"
}
}
@@ -992,50 +1003,50 @@
},
{
key: "2",
- label: 保养,
+ label: {maintain},
value: {
- conent2: "保养",
+ conent2: maintain,
backgroundColor: "#FF6600"
},
children: [
{
key: "2-1",
- label: 日常保养,
+ label: {dailyMaintenance},
value: {
- conent2: "日常保养",
+ conent2: dailyMaintenance,
backgroundColor: "#FF6600"
}
},
{
key: "2-2",
- label: 一级保养,
+ label: {firstMaintenance},
value: {
- conent2: "一级保养",
+ conent2: firstMaintenance,
backgroundColor: "#FF6600"
}
},
{
key: "2-3",
- label: 二级保养,
+ label: {secondMaintenance},
value: {
- conent2: "二级保养",
+ conent2: secondMaintenance,
backgroundColor: "#FF6600"
}
},
{
key: "2-4",
- label: 一级+二级保养,
+ label: {FSMaintenance},
value: {
- conent2: "一级+二级保养",
+ conent2: FSMaintenance,
backgroundColor: "#FF6600",
fontSize: 130
}
},
{
key: "2-5",
- label: 年度保养,
+ label: {annualMaintenance},
value: {
- conent2: "年度保养",
+ conent2: annualMaintenance,
backgroundColor: "#FF6600"
}
}
--
libgit2 0.22.2