|
|
@ -70,7 +70,7 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
|
useEffect(() => { |
|
|
|
if (pumpOne?.data.length) { |
|
|
|
setChecked({ |
|
|
|
'模式切换': pumpOne.data[0].sMotor_RunMode == 3 ? true : false, |
|
|
|
'模式切换': pumpOne.data[0].sMotor_RunMode == 2 ? true : false, |
|
|
|
'启动控制': pumpOne.data[0].cMotor_START, |
|
|
|
'停止控制': pumpOne.data[0].cMotor_STOP, |
|
|
|
}) |
|
|
@ -151,7 +151,7 @@ const RealTimeStatus = ({ dispatch, actions, user, pumpId, pumpList, setPumpId, |
|
|
|
})).then(res => { |
|
|
|
console.log('控制res', res) |
|
|
|
}) |
|
|
|
pumpOne.data[0] = { ...pumpOne.data[0], sMotor_State: label === '启动控制' ? 2 : label === '停止控制' ? 1 : pumpOne.sMotor_State } |
|
|
|
pumpOne.data[0] = { ...pumpOne.data[0], sMotor_State: label === '启动控制' ? 2 : label === '停止控制' ? 1 : pumpOne?.data[0]?.sMotor_State } |
|
|
|
setPumpOne({ ...pumpOne }) |
|
|
|
setTimeout(() => { |
|
|
|
dispatch(bigScreen.axyData({ |
|
|
|