diff --git a/src/components/Test.vue b/src/components/Test.vue
index 5fd4a83..745eaf3 100644
--- a/src/components/Test.vue
+++ b/src/components/Test.vue
@@ -18,8 +18,8 @@
@@ -28,8 +28,8 @@
@@ -37,8 +37,26 @@
-
打开
-
关闭
+
+ 打开
+
+
+ 关闭
+
@@ -59,8 +77,8 @@
@@ -69,8 +87,8 @@
@@ -78,8 +96,26 @@
-
打开
-
关闭
+
+ 打开
+
+
+ 关闭
+
@@ -352,22 +388,31 @@ const handleInput = (value, index) => {
const setAddLiquidConfig = flag => {
if (flag == 1) {
- websocketStore.sendCommandMsg(
- // 正传
- test_replenishingFluidsPumpCtrJSON(1, addLiquidVal.value),
- )
- showSuccessToast('设置成功')
+ if (settingStore.chargingPumpRPM == 0) {
+ websocketStore.sendCommandMsg(
+ // 正传
+ test_replenishingFluidsPumpCtrJSON(1, addLiquidVal.value),
+ )
+ showSuccessToast('设置成功')
+ return
+ }
} else if (flag == 2) {
- websocketStore.sendCommandMsg(
- sprayLiquidPump_open_for_testJSON(1, addLiquidVal2.value),
- )
- showSuccessToast('设置成功')
+ if (settingStore.sprinklerPumpRPM == 0) {
+ websocketStore.sendCommandMsg(
+ sprayLiquidPump_open_for_testJSON(1, addLiquidVal2.value),
+ )
+ showSuccessToast('设置成功')
+ return
+ }
} else if (flag == 3) {
// 关闭
- websocketStore.sendCommandMsg(
- test_replenishingFluidsPumpCtrJSON(0, addLiquidVal.value),
- )
- showSuccessToast('关闭加液蠕动泵成功')
+ if (settingStore.chargingPumpRPM != 0) {
+ websocketStore.sendCommandMsg(
+ test_replenishingFluidsPumpCtrJSON(0, addLiquidVal.value),
+ )
+ showSuccessToast('关闭加液蠕动泵成功')
+ return
+ }
} else if (flag == 5) {
// 反转
websocketStore.sendCommandMsg(
@@ -380,10 +425,13 @@ const setAddLiquidConfig = flag => {
)
showSuccessToast('设置成功')
} else {
- websocketStore.sendCommandMsg(
- sprayLiquidPump_open_for_testJSON(0, addLiquidVal2.value),
- )
- showSuccessToast('关闭注射蠕动泵成功')
+ if (settingStore.sprinklerPumpRPM != 0) {
+ websocketStore.sendCommandMsg(
+ sprayLiquidPump_open_for_testJSON(0, addLiquidVal2.value),
+ )
+ showSuccessToast('关闭注射蠕动泵成功')
+ return
+ }
}
}