Commit 95c486780f2b857251cbde60d623adf265f835c0
1 parent
5e091393
设备及目标信息展示速度
Showing
3 changed files
with
10 additions
and
10 deletions
src/components/Common/CommonTable/index.js
| @@ -1221,12 +1221,9 @@ class CommonTableRc extends React.Component { | @@ -1221,12 +1221,9 @@ class CommonTableRc extends React.Component { | ||
| 1221 | /** 行选择 */ | 1221 | /** 行选择 */ |
| 1222 | onDoubleClick = (name, record) => { | 1222 | onDoubleClick = (name, record) => { |
| 1223 | if (this.props.onDoubleClickNew) { | 1223 | if (this.props.onDoubleClickNew) { |
| 1224 | - console.log('onDoubleClick', 1111); | ||
| 1225 | - | ||
| 1226 | this.props.onDoubleClickNew({ name, record }); | 1224 | this.props.onDoubleClickNew({ name, record }); |
| 1227 | } else if (this.props.onDoubleClick !== undefined) { | 1225 | } else if (this.props.onDoubleClick !== undefined) { |
| 1228 | this.props.onDoubleClick(record); | 1226 | this.props.onDoubleClick(record); |
| 1229 | - console.log('onDoubleClick', 2222); | ||
| 1230 | } | 1227 | } |
| 1231 | 1228 | ||
| 1232 | }; | 1229 | }; |
src/mes/common/siderInfoComponent/index.js
| @@ -640,6 +640,8 @@ const DeviceTargetInfoComponent = () => { | @@ -640,6 +640,8 @@ const DeviceTargetInfoComponent = () => { | ||
| 640 | {equipmentTargetInformation} | 640 | {equipmentTargetInformation} |
| 641 | </div> | 641 | </div> |
| 642 | {showConfig.map((config, index) => { | 642 | {showConfig.map((config, index) => { |
| 643 | + console.log(showConfig, 'showConfig'); | ||
| 644 | + | ||
| 643 | // if (index > 4) return ""; | 645 | // if (index > 4) return ""; |
| 644 | // bPushDiff | 646 | // bPushDiff |
| 645 | const { bPushDiff = false } = props?.app?.userinfo | 647 | const { bPushDiff = false } = props?.app?.userinfo |
| @@ -648,12 +650,13 @@ const DeviceTargetInfoComponent = () => { | @@ -648,12 +650,13 @@ const DeviceTargetInfoComponent = () => { | ||
| 648 | odd: index % 2 === 0 | 650 | odd: index % 2 === 0 |
| 649 | }); | 651 | }); |
| 650 | const showTypeProps = handleGetShowTypeProps(config); | 652 | const showTypeProps = handleGetShowTypeProps(config); |
| 651 | - if (index > 4 && !bPushDiff) { | ||
| 652 | - return '' | ||
| 653 | - } | ||
| 654 | - if (index > 4 && bPushDiff && !['dPieceDefectBQty', 'dPieceDefectAQty', 'dTotalAdjust'].includes(config?.sName)) { | ||
| 655 | - return '' | 653 | + if ( |
| 654 | + ['dPieceDefectAQty', 'dPieceDefectBQty'].includes(config?.sName) && | ||
| 655 | + !bPushDiff | ||
| 656 | + ) { | ||
| 657 | + return null; // 不满足条件,不渲染 | ||
| 656 | } | 658 | } |
| 659 | + // 'dTotalAdjust', 'dSpeed' | ||
| 657 | if (config?.sName?.endsWith("Qty")) { | 660 | if (config?.sName?.endsWith("Qty")) { |
| 658 | return ( | 661 | return ( |
| 659 | <div className={`${className} dynamicClock`}> | 662 | <div className={`${className} dynamicClock`}> |
src/mes/common/siderInfoComponent/index.less
| @@ -77,7 +77,7 @@ | @@ -77,7 +77,7 @@ | ||
| 77 | // 工单类型 | 77 | // 工单类型 |
| 78 | .workOrdertype { | 78 | .workOrdertype { |
| 79 | position: relative; | 79 | position: relative; |
| 80 | - .size(100%, calc(100% - 230px - 30px)); | 80 | + .size(100%, calc(100% - 160px - 30px)); |
| 81 | // .size(100%, calc(100% - 230px - 280px)); | 81 | // .size(100%, calc(100% - 230px - 280px)); |
| 82 | 82 | ||
| 83 | :global { | 83 | :global { |
| @@ -219,7 +219,7 @@ | @@ -219,7 +219,7 @@ | ||
| 219 | .deviceTargetInfo { | 219 | .deviceTargetInfo { |
| 220 | // .size(100%, 25%); | 220 | // .size(100%, 25%); |
| 221 | .size(100%); | 221 | .size(100%); |
| 222 | - max-height: 330px; | 222 | + max-height: 390px; |
| 223 | // margin-bottom: 15px; | 223 | // margin-bottom: 15px; |
| 224 | background-color: #FFF6DE; | 224 | background-color: #FFF6DE; |
| 225 | 225 |