Commit bf9d1b77ad46b96b1242698fe7776b76a84eb182

Authored by Min
1 parent 6c93d086

1.完善表单,表格悬浮增加英文-中文提示

src/components/Common/CommonTable/index.js
@@ -4481,7 +4481,7 @@ class CommonTableRc extends React.Component { @@ -4481,7 +4481,7 @@ class CommonTableRc extends React.Component {
4481 )) 4481 ))
4482 ) { 4482 ) {
4483 res = ( 4483 res = (
4484 - <div className="th-div" style={styleObj} title={`${column.chineseTitle}`}> 4484 + <div className="th-div" style={styleObj} title={`${column.tipTitle}`}>
4485 {checkBoxAll} 4485 {checkBoxAll}
4486 {expandedAllIcon} 4486 {expandedAllIcon}
4487 {!column.dataIndex?.startsWith("b") ? ( 4487 {!column.dataIndex?.startsWith("b") ? (
src/components/Common/commonFunc.js
@@ -91,10 +91,12 @@ export function getHeaderConfig(config) { @@ -91,10 +91,12 @@ export function getHeaderConfig(config) {
91 const tableConfig = config.gdsconfigformslave; 91 const tableConfig = config.gdsconfigformslave;
92 const column = []; 92 const column = [];
93 for (const child of tableConfig) { 93 for (const child of tableConfig) {
  94 + const tipTitle = commonUtils.isNotEmptyObject(child.showName) ? child.showName !== child.sChinese ?
  95 + `${child.showName}-${child.sChinese}` : child.showName : child.sChinese;
94 if (child.sName !== '' && child.bVisible && child.showName !== '') { 96 if (child.sName !== '' && child.bVisible && child.showName !== '') {
95 column.push({ 97 column.push({
96 title: child.showName, 98 title: child.showName,
97 - chineseTitle: child.sChinese, 99 + tipTitle,
98 dataIndex: child.sName.trim(), 100 dataIndex: child.sName.trim(),
99 width: child.iFitWidth, 101 width: child.iFitWidth,
100 bFind: child.bFind, 102 bFind: child.bFind,