|
@ -27,8 +27,26 @@ |
|
|
<p>P</p> |
|
|
<p>P</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="btn_wrap"> |
|
|
<div class="btn_wrap"> |
|
|
<div class="open style-btn" @click="setAddLiquidConfig(1)">正转</div> |
|
|
|
|
|
<div class="open style-btn" @click="setAddLiquidConfig(5)">反转</div> |
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
:class=" |
|
|
|
|
|
settingStore.addLiquidConfigVal > 0 |
|
|
|
|
|
? 'open success style-btn' |
|
|
|
|
|
: 'open style-btn' |
|
|
|
|
|
" |
|
|
|
|
|
@click="setAddLiquidConfig(1)" |
|
|
|
|
|
> |
|
|
|
|
|
正转 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div |
|
|
|
|
|
:class=" |
|
|
|
|
|
settingStore.addLiquidConfigVal < 0 |
|
|
|
|
|
? 'open success style-btn' |
|
|
|
|
|
: 'open style-btn' |
|
|
|
|
|
" |
|
|
|
|
|
@click="setAddLiquidConfig(5)" |
|
|
|
|
|
> |
|
|
|
|
|
反转 |
|
|
|
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="open style-btn" |
|
|
class="open style-btn" |
|
|
@click="setAddLiquidConfig(3)" |
|
|
@click="setAddLiquidConfig(3)" |
|
@ -39,7 +57,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="common_set switch_wrap"> |
|
|
<div class="common_set switch_wrap"> |
|
|
<p class="title">喷液蠕动泵</p> |
|
|
|
|
|
|
|
|
<p class="title">注射蠕动泵</p> |
|
|
<div class="num"> |
|
|
<div class="num"> |
|
|
<van-field |
|
|
<van-field |
|
|
type="number" |
|
|
type="number" |
|
@ -65,8 +83,26 @@ |
|
|
<p>P</p> |
|
|
<p>P</p> |
|
|
</div> |
|
|
</div> |
|
|
<div class="btn_wrap"> |
|
|
<div class="btn_wrap"> |
|
|
<div class="open style-btn" @click="setAddLiquidConfig(2)">正转</div> |
|
|
|
|
|
<div class="open style-btn" @click="setAddLiquidConfig(6)">反转</div> |
|
|
|
|
|
|
|
|
<div |
|
|
|
|
|
:class=" |
|
|
|
|
|
settingStore.sprayLiquidConfigVal > 0 |
|
|
|
|
|
? 'open success style-btn' |
|
|
|
|
|
: 'open style-btn' |
|
|
|
|
|
" |
|
|
|
|
|
@click="setAddLiquidConfig(2)" |
|
|
|
|
|
> |
|
|
|
|
|
正转 |
|
|
|
|
|
</div> |
|
|
|
|
|
<div |
|
|
|
|
|
:class=" |
|
|
|
|
|
settingStore.sprayLiquidConfigVal < 0 |
|
|
|
|
|
? 'open success style-btn' |
|
|
|
|
|
: 'open style-btn' |
|
|
|
|
|
" |
|
|
|
|
|
@click="setAddLiquidConfig(6)" |
|
|
|
|
|
> |
|
|
|
|
|
反转 |
|
|
|
|
|
</div> |
|
|
<div |
|
|
<div |
|
|
class="open style-btn" |
|
|
class="open style-btn" |
|
|
@click="setAddLiquidConfig(4)" |
|
|
@click="setAddLiquidConfig(4)" |
|
@ -226,7 +262,7 @@ import { |
|
|
getStateJSON, |
|
|
getStateJSON, |
|
|
addLiquidCtrlJSON, |
|
|
addLiquidCtrlJSON, |
|
|
} from '@/mock/command' |
|
|
} from '@/mock/command' |
|
|
|
|
|
|
|
|
|
|
|
import { showSuccessToast, showFailToast } from 'vant' |
|
|
const testStore = useTestStore() |
|
|
const testStore = useTestStore() |
|
|
const deviceStore = useDeviceStore() |
|
|
const deviceStore = useDeviceStore() |
|
|
const websocketStore = useWebSocketStore() |
|
|
const websocketStore = useWebSocketStore() |
|
@ -311,24 +347,30 @@ const setAddLiquidConfig = flag => { |
|
|
websocketStore.sendCommandMsg( |
|
|
websocketStore.sendCommandMsg( |
|
|
addLiquidCtrlJSON(1, addLiquidVal.value, addLiquidPower.value), |
|
|
addLiquidCtrlJSON(1, addLiquidVal.value, addLiquidPower.value), |
|
|
) |
|
|
) |
|
|
|
|
|
showSuccessToast('设置成功') |
|
|
} else if (flag == 2) { |
|
|
} else if (flag == 2) { |
|
|
websocketStore.sendCommandMsg( |
|
|
websocketStore.sendCommandMsg( |
|
|
addLiquidCtrlJSON(2, addLiquidVal2.value, addLiquidPower2.value), |
|
|
addLiquidCtrlJSON(2, addLiquidVal2.value, addLiquidPower2.value), |
|
|
) |
|
|
) |
|
|
|
|
|
showSuccessToast('设置成功') |
|
|
} else if (flag == 3) { |
|
|
} else if (flag == 3) { |
|
|
websocketStore.sendCommandMsg(addLiquidCtrlJSON(1, 0, addLiquidPower.value)) |
|
|
websocketStore.sendCommandMsg(addLiquidCtrlJSON(1, 0, addLiquidPower.value)) |
|
|
|
|
|
showSuccessToast('关闭加液蠕动泵成功') |
|
|
} else if (flag == 5) { |
|
|
} else if (flag == 5) { |
|
|
websocketStore.sendCommandMsg( |
|
|
websocketStore.sendCommandMsg( |
|
|
addLiquidCtrlJSON(1, '-' + addLiquidVal.value, addLiquidPower.value), |
|
|
addLiquidCtrlJSON(1, '-' + addLiquidVal.value, addLiquidPower.value), |
|
|
) |
|
|
) |
|
|
|
|
|
showSuccessToast('设置成功') |
|
|
} else if (flag == 6) { |
|
|
} else if (flag == 6) { |
|
|
websocketStore.sendCommandMsg( |
|
|
websocketStore.sendCommandMsg( |
|
|
addLiquidCtrlJSON(2, '-' + addLiquidVal2.value, addLiquidPower2.value), |
|
|
addLiquidCtrlJSON(2, '-' + addLiquidVal2.value, addLiquidPower2.value), |
|
|
) |
|
|
) |
|
|
|
|
|
showSuccessToast('设置成功') |
|
|
} else { |
|
|
} else { |
|
|
websocketStore.sendCommandMsg( |
|
|
websocketStore.sendCommandMsg( |
|
|
addLiquidCtrlJSON(2, 0, addLiquidPower2.value), |
|
|
addLiquidCtrlJSON(2, 0, addLiquidPower2.value), |
|
|
) |
|
|
) |
|
|
|
|
|
showSuccessToast('关闭注射蠕动泵成功') |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -492,6 +534,9 @@ const changeDraughtStatus = flag => { |
|
|
letter-spacing: 0.1em; |
|
|
letter-spacing: 0.1em; |
|
|
color: #ffffff; |
|
|
color: #ffffff; |
|
|
} |
|
|
} |
|
|
|
|
|
.success { |
|
|
|
|
|
background: #1ad66e; |
|
|
|
|
|
} |
|
|
.close { |
|
|
.close { |
|
|
width: 87px; |
|
|
width: 87px; |
|
|
height: 45px; |
|
|
height: 45px; |
|
|