Commit 95c486780f2b857251cbde60d623adf265f835c0

Authored by chenxt
1 parent 5e091393

设备及目标信息展示速度

src/components/Common/CommonTable/index.js
... ... @@ -1221,12 +1221,9 @@ class CommonTableRc extends React.Component {
1221 1221 /** 行选择 */
1222 1222 onDoubleClick = (name, record) => {
1223 1223 if (this.props.onDoubleClickNew) {
1224   - console.log('onDoubleClick', 1111);
1225   -
1226 1224 this.props.onDoubleClickNew({ name, record });
1227 1225 } else if (this.props.onDoubleClick !== undefined) {
1228 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 640 {equipmentTargetInformation}
641 641 </div>
642 642 {showConfig.map((config, index) => {
  643 + console.log(showConfig, 'showConfig');
  644 +
643 645 // if (index > 4) return "";
644 646 // bPushDiff
645 647 const { bPushDiff = false } = props?.app?.userinfo
... ... @@ -648,12 +650,13 @@ const DeviceTargetInfoComponent = () =&gt; {
648 650 odd: index % 2 === 0
649 651 });
650 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 660 if (config?.sName?.endsWith("Qty")) {
658 661 return (
659 662 <div className={`${className} dynamicClock`}>
... ...
src/mes/common/siderInfoComponent/index.less
... ... @@ -77,7 +77,7 @@
77 77 // 工单类型
78 78 .workOrdertype {
79 79 position: relative;
80   - .size(100%, calc(100% - 230px - 30px));
  80 + .size(100%, calc(100% - 160px - 30px));
81 81 // .size(100%, calc(100% - 230px - 280px));
82 82  
83 83 :global {
... ... @@ -219,7 +219,7 @@
219 219 .deviceTargetInfo {
220 220 // .size(100%, 25%);
221 221 .size(100%);
222   - max-height: 330px;
  222 + max-height: 390px;
223 223 // margin-bottom: 15px;
224 224 background-color: #FFF6DE;
225 225  
... ...