Commit 511f85b1a43f2c213195c2707834220dde02e4a9
1 parent
5c636474
1.处理设备APS规则设定 Tab页签多语言翻译
Showing
1 changed file
with
7 additions
and
1 deletions
src/components/CommonElementEvent/ElemachineInfo.js
| ... | ... | @@ -171,8 +171,14 @@ const EleMachineInfoComponent = Form.create({ |
| 171 | 171 | tableConfigTypeArr.map((item) => { |
| 172 | 172 | // 匹配数字 |
| 173 | 173 | const num = item.replace(/[^\d]/g, ' '); |
| 174 | + let tabName = item.replace(/\d+/g,''); | |
| 175 | + /* 从主表配置 找到控件名=tabName,否则取他的showName */ | |
| 176 | + const tableConfigArr = masterConfig?.gdsconfigformslave.filter(row => row.sControlName === item.trim()); | |
| 177 | + if(commonUtils.isNotEmptyArr(tableConfigArr)) { | |
| 178 | + tabName=tableConfigArr[0].showName; | |
| 179 | + } | |
| 174 | 180 | return ( |
| 175 | - <TabPane tab={item} key={num} className="xly-bill-list" style={{ height: AutoTableHeight }}> | |
| 181 | + <TabPane tab={tabName} key={num} className="xly-bill-list" style={{ height: AutoTableHeight }}> | |
| 176 | 182 | <div> |
| 177 | 183 | <CommonView |
| 178 | 184 | {...props} | ... | ... |