|
|
@ -18,8 +18,8 @@ |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.chargingPumpRPM > 0 |
|
|
|
? 'open success style-btn mg' |
|
|
|
: 'open style-btn mg' |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(1)" |
|
|
|
> |
|
|
@ -28,8 +28,8 @@ |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.chargingPumpRPM < 0 |
|
|
|
? 'open success style-btn' |
|
|
|
: 'open style-btn' |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(5)" |
|
|
|
> |
|
|
@ -37,8 +37,26 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="btn_wrap"> |
|
|
|
<div class="open style-btn mg" @click="setAddLiquidConfig(1)">打开</div> |
|
|
|
<div class="open style-btn" @click="setAddLiquidConfig(3)">关闭</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.chargingPumpRPM != 0 |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(1)" |
|
|
|
> |
|
|
|
打开 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.chargingPumpRPM == 0 |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(3)" |
|
|
|
> |
|
|
|
关闭 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set switch_wrap"> |
|
|
@ -59,8 +77,8 @@ |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.sprinklerPumpRPM > 0 |
|
|
|
? 'open success style-btn mg' |
|
|
|
: 'open style-btn mg' |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(2)" |
|
|
|
> |
|
|
@ -69,8 +87,8 @@ |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.sprinklerPumpRPM < 0 |
|
|
|
? 'open success style-btn' |
|
|
|
: 'open style-btn' |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(6)" |
|
|
|
> |
|
|
@ -78,8 +96,26 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="btn_wrap"> |
|
|
|
<div class="open style-btn mg" @click="setAddLiquidConfig(2)">打开</div> |
|
|
|
<div class="open style-btn" @click="setAddLiquidConfig(4)">关闭</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.sprinklerPumpRPM != 0 |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(2)" |
|
|
|
> |
|
|
|
打开 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
settingStore.sprinklerPumpRPM == 0 |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="setAddLiquidConfig(4)" |
|
|
|
> |
|
|
|
关闭 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set switch_wrap"> |
|
|
@ -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 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|