From 511f85b1a43f2c213195c2707834220dde02e4a9 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Thu, 26 Jun 2025 10:12:59 +0800 Subject: [PATCH] 1.处理设备APS规则设定 Tab页签多语言翻译 --- src/components/CommonElementEvent/ElemachineInfo.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/CommonElementEvent/ElemachineInfo.js b/src/components/CommonElementEvent/ElemachineInfo.js index 851bae1..227db2d 100644 --- a/src/components/CommonElementEvent/ElemachineInfo.js +++ b/src/components/CommonElementEvent/ElemachineInfo.js @@ -171,8 +171,14 @@ const EleMachineInfoComponent = Form.create({ tableConfigTypeArr.map((item) => { // 匹配数字 const num = item.replace(/[^\d]/g, ' '); + let tabName = item.replace(/\d+/g,''); + /* 从主表配置 找到控件名=tabName,否则取他的showName */ + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName=tableConfigArr[0].showName; + } return ( - +