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])
useEffect(() => {
console.log(pumpOne, 'pumpOne')
if (pumpOne?.data.length) {
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_STOP,
})
}
}, [pumpOne])
@ -188,7 +189,7 @@ const RealTimeStatus = (props) => {
</div>
<Modal
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 }} />}
width={287}
>

Loading…
Cancel
Save