Browse Source

更改测试

master
maochaoying 2 years ago
parent
commit
e9dd5e6f8d
  1. 8
      .env
  2. 2
      src/components/Progress.vue
  3. 8
      src/components/Test.vue

8
.env

@ -1,5 +1,5 @@
VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/
VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
VITE_BASE_WS2_URL=ws://127.0.0.1:19002/

2
src/components/Progress.vue

@ -788,7 +788,7 @@ const continueDisinfect = () => {
color: #ffffff; color: #ffffff;
position: absolute; position: absolute;
left: 165px; left: 165px;
top: 9px;
top: 12px;
width: 178px; width: 178px;
height: 41px; height: 41px;
text-align: center; text-align: center;

8
src/components/Test.vue

@ -394,31 +394,25 @@ const handleInput = (value, index) => {
const setAddLiquidConfig = flag => { const setAddLiquidConfig = flag => {
if (flag == 1) { if (flag == 1) {
if (settingStore.chargingPumpRPM == 0) {
websocketStore.sendCommandMsg( websocketStore.sendCommandMsg(
// //
test_replenishingFluidsPumpCtrJSON(1, addLiquidVal.value), test_replenishingFluidsPumpCtrJSON(1, addLiquidVal.value),
) )
showSuccessToast('设置成功') showSuccessToast('设置成功')
return return
}
} else if (flag == 2) { } else if (flag == 2) {
if (settingStore.sprinklerPumpRPM == 0) {
websocketStore.sendCommandMsg( websocketStore.sendCommandMsg(
sprayLiquidPump_open_for_testJSON(1, addLiquidVal2.value), sprayLiquidPump_open_for_testJSON(1, addLiquidVal2.value),
) )
showSuccessToast('设置成功') showSuccessToast('设置成功')
return return
}
} else if (flag == 3) { } else if (flag == 3) {
// //
if (settingStore.chargingPumpRPM != 0) {
websocketStore.sendCommandMsg( websocketStore.sendCommandMsg(
test_replenishingFluidsPumpCtrJSON(0, addLiquidVal.value), test_replenishingFluidsPumpCtrJSON(0, addLiquidVal.value),
) )
showSuccessToast('关闭加液蠕动泵成功') showSuccessToast('关闭加液蠕动泵成功')
return return
}
} else if (flag == 5) { } else if (flag == 5) {
// //
websocketStore.sendCommandMsg( websocketStore.sendCommandMsg(
@ -431,7 +425,6 @@ const setAddLiquidConfig = flag => {
) )
showSuccessToast('设置成功') showSuccessToast('设置成功')
} else { } else {
if (settingStore.sprinklerPumpRPM != 0) {
websocketStore.sendCommandMsg( websocketStore.sendCommandMsg(
sprayLiquidPump_open_for_testJSON(0, addLiquidVal2.value), sprayLiquidPump_open_for_testJSON(0, addLiquidVal2.value),
) )
@ -439,7 +432,6 @@ const setAddLiquidConfig = flag => {
return return
} }
} }
}
const handleUpdate = () => { const handleUpdate = () => {
websocketStore.sendCommandMsg(getStateJSON) websocketStore.sendCommandMsg(getStateJSON)

Loading…
Cancel
Save