Browse Source

消毒死机

master
maochaoying 2 years ago
parent
commit
292fe233fd
  1. 8
      src/components/Operator.vue
  2. 4
      src/components/dialogs/DisinfectModal.vue

8
src/components/Operator.vue

@ -504,6 +504,10 @@ const hiddenPreVisible = () => {
//
const stopDisinfectStatus = () => {
disinfectWarnVisible.value = true
//
setTimeout(() => {
operatorStore.updateStopReady(false)
}, 10000)
}
const hideDisinfectModal = () => {
@ -559,6 +563,10 @@ const startDisinfect = () => {
//
// preVisible.value = true
operatorStore.updateShowStartReady(true)
//
setTimeout(() => {
operatorStore.updateShowStartReady(false)
}, 10000)
realStart()
}

4
src/components/dialogs/DisinfectModal.vue

@ -48,6 +48,10 @@ const handleCancel = () => {
const handleStart = () => {
if ([1, 2, 3, 4].includes(operatorStore.disinfectStatus)) {
operatorStore.updateStopReady(true)
//
setTimeout(() => {
operatorStore.updateStopReady(false)
}, 10000)
webSocketStore.sendCommandMsg(stopDisinfectionJSON)
props.hideDisinfectModal()
}

Loading…
Cancel
Save