Browse Source

泵站控制优化

master
liujiangyong 1 year ago
parent
commit
d5aa7a41d4
  1. 7
      web/client/src/sections/bigScreen/components/electrity/realTimeStatus.js

7
web/client/src/sections/bigScreen/components/electrity/realTimeStatus.js

@ -19,11 +19,12 @@ const RealTimeStatus = (props) => {
}, [pumpList]) }, [pumpList])
useEffect(() => { useEffect(() => {
console.log(pumpOne, 'pumpOne')
if (pumpOne?.data.length) { if (pumpOne?.data.length) {
setChecked({ setChecked({
'模式切换': pumpOne.data[0].sMotor_State === 1 ? false : true, '模式切换': pumpOne.data[0].cMotor_AUTO,
'启动控制': pumpOne.data[0].cMotor_START, '启动控制': pumpOne.data[0].cMotor_START,
'停止控制': pumpOne.data[0].cMotor_START, '停止控制': pumpOne.data[0].cMotor_STOP,
}) })
} }
}, [pumpOne]) }, [pumpOne])
@ -188,7 +189,7 @@ const RealTimeStatus = (props) => {
</div> </div>
<Modal <Modal
footer={null} open={isModalOpen} onCancel={handleCancel} footer={null} open={isModalOpen} onCancel={handleCancel}
bodyStyle={{ background: 'url(/assets/images/electrical/control-bg.png) no-repeat center center', backgroundSize: '100% 100%', padding: '12px 16px' }} bodyStyle={{ background: 'url(/assets/images/electrical/control-bg.png) no-repeat center center', backgroundSize: '100% 100%', padding: '12px 16px', backgroundColor: '#344e6b' }}
closeIcon={<img src='/assets/images/electrical/close.svg' style={{ width: 16, height: 16 }} />} closeIcon={<img src='/assets/images/electrical/close.svg' style={{ width: 16, height: 16 }} />}
width={287} width={287}
> >

Loading…
Cancel
Save