|
|
@ -394,31 +394,25 @@ const handleInput = (value, index) => { |
|
|
|
|
|
|
|
const setAddLiquidConfig = flag => { |
|
|
|
if (flag == 1) { |
|
|
|
if (settingStore.chargingPumpRPM == 0) { |
|
|
|
websocketStore.sendCommandMsg( |
|
|
|
// 正传 |
|
|
|
test_replenishingFluidsPumpCtrJSON(1, addLiquidVal.value), |
|
|
|
) |
|
|
|
showSuccessToast('设置成功') |
|
|
|
return |
|
|
|
} |
|
|
|
} else if (flag == 2) { |
|
|
|
if (settingStore.sprinklerPumpRPM == 0) { |
|
|
|
websocketStore.sendCommandMsg( |
|
|
|
sprayLiquidPump_open_for_testJSON(1, addLiquidVal2.value), |
|
|
|
) |
|
|
|
showSuccessToast('设置成功') |
|
|
|
return |
|
|
|
} |
|
|
|
} else if (flag == 3) { |
|
|
|
// 关闭 |
|
|
|
if (settingStore.chargingPumpRPM != 0) { |
|
|
|
websocketStore.sendCommandMsg( |
|
|
|
test_replenishingFluidsPumpCtrJSON(0, addLiquidVal.value), |
|
|
|
) |
|
|
|
showSuccessToast('关闭加液蠕动泵成功') |
|
|
|
return |
|
|
|
} |
|
|
|
} else if (flag == 5) { |
|
|
|
// 反转 |
|
|
|
websocketStore.sendCommandMsg( |
|
|
@ -431,14 +425,12 @@ const setAddLiquidConfig = flag => { |
|
|
|
) |
|
|
|
showSuccessToast('设置成功') |
|
|
|
} else { |
|
|
|
if (settingStore.sprinklerPumpRPM != 0) { |
|
|
|
websocketStore.sendCommandMsg( |
|
|
|
sprayLiquidPump_open_for_testJSON(0, addLiquidVal2.value), |
|
|
|
) |
|
|
|
showSuccessToast('关闭注射蠕动泵成功') |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const handleUpdate = () => { |
|
|
|