|
|
@ -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} |
|
|
|
> |
|
|
|