|
@ -3,6 +3,7 @@ import { sendCmd } from 'apis/system' |
|
|
import homeFinish from 'assets/images/home/home-finish.svg' |
|
|
import homeFinish from 'assets/images/home/home-finish.svg' |
|
|
import homeStart from 'assets/images/home/home-start.svg' |
|
|
import homeStart from 'assets/images/home/home-start.svg' |
|
|
import { startTimer, stopTimer } from 'libs/countdownTimer' |
|
|
import { startTimer, stopTimer } from 'libs/countdownTimer' |
|
|
|
|
|
import { deviceStateMap } from 'libs/utils' |
|
|
import { computed, ref, watchEffect } from 'vue' |
|
|
import { computed, ref, watchEffect } from 'vue' |
|
|
|
|
|
|
|
|
import { getDeviceStatus } from '@/libs/deviceComm' |
|
|
import { getDeviceStatus } from '@/libs/deviceComm' |
|
@ -147,7 +148,7 @@ const operationState = computed(() => { |
|
|
const startInjection = async () => { |
|
|
const startInjection = async () => { |
|
|
const stopParams = { |
|
|
const stopParams = { |
|
|
className: 'DisinfectionCtrlServiceExt', |
|
|
className: 'DisinfectionCtrlServiceExt', |
|
|
fnName: 'stop', |
|
|
|
|
|
|
|
|
fnName: 'setHandleStopPumpInjectionFlag', |
|
|
params: {}, |
|
|
params: {}, |
|
|
} |
|
|
} |
|
|
await sendCmd(stopParams) |
|
|
await sendCmd(stopParams) |
|
@ -157,7 +158,7 @@ const startInjection = async () => { |
|
|
const stopInjection = async () => { |
|
|
const stopInjection = async () => { |
|
|
const stopParams = { |
|
|
const stopParams = { |
|
|
className: 'DisinfectionCtrlServiceExt', |
|
|
className: 'DisinfectionCtrlServiceExt', |
|
|
fnName: 'stop', |
|
|
|
|
|
|
|
|
fnName: 'clearHandleStopPumpInjectionFlag', |
|
|
params: {}, |
|
|
params: {}, |
|
|
} |
|
|
} |
|
|
await sendCmd(stopParams) |
|
|
await sendCmd(stopParams) |
|
@ -200,12 +201,17 @@ const stopInjection = async () => { |
|
|
</template> |
|
|
</template> |
|
|
</bt-button> |
|
|
</bt-button> |
|
|
</div> |
|
|
</div> |
|
|
<div style="width: 100%; display: flex; justify-content: center; margin-top: 10px"> |
|
|
|
|
|
|
|
|
<div style="width: 100%; display: flex; align-items: center; justify-content: center; margin-top: 10px"> |
|
|
|
|
|
<div style="margin-right: 10px"> |
|
|
|
|
|
<span>强制停止喷液: </span> |
|
|
|
|
|
<span v-if="homeStore.disinfectionState.handlePumpStopFlag">1</span> |
|
|
|
|
|
<span v-else>0</span> |
|
|
|
|
|
</div> |
|
|
<el-button type="primary" @click="startInjection"> |
|
|
<el-button type="primary" @click="startInjection"> |
|
|
开始注射 |
|
|
|
|
|
|
|
|
设置 |
|
|
</el-button> |
|
|
</el-button> |
|
|
<el-button type="danger" @click="stopInjection"> |
|
|
<el-button type="danger" @click="stopInjection"> |
|
|
结束注射 |
|
|
|
|
|
|
|
|
清除 |
|
|
</el-button> |
|
|
</el-button> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|