From 068a126e1fc0680280c9ced53b10ae212a3ad16b Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Wed, 18 Jun 2025 17:10:43 +0800 Subject: [PATCH] 1.完善工单工艺卡表单多页签标题的多语言翻译 --- src/components/Manufacture/CommonPackEvent.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Manufacture/CommonPackEvent.js b/src/components/Manufacture/CommonPackEvent.js index 004423a..8fa4e74 100644 --- a/src/components/Manufacture/CommonPackEvent.js +++ b/src/components/Manufacture/CommonPackEvent.js @@ -1035,9 +1035,12 @@ const CommonPackEvent = props => { {Object.keys(controlGroup).map(tabNameKey => { console.log("eeee", tabNameKey); - const tabName = tabNameKey.replace(/\d+/g, ""); + let tabName = tabNameKey.replace(/\d+/g, ""); const num = tabNameKey.replace(/[^\d]/g, "").trim(); - + const tableConfigArr = config?.gdsconfigformslave.filter(row => row.sControlName === tabNameKey.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName =tableConfigArr[0].showName; + } const viewProps = { ...props, viewConfigs: controlGroup[tabNameKey], -- libgit2 0.22.2