|
|
@ -31,7 +31,7 @@ |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import { useWebSocketStore } from '@/store' |
|
|
|
import { cleanDisinfectionRecordByKeysJSON } from '@/mock/command' |
|
|
|
import { cleanDisinfectionRecordByKeysJSON, getAllLocalHistoryData } from '@/mock/command' |
|
|
|
import { ref } from 'vue' |
|
|
|
// props |
|
|
|
const props = defineProps({ |
|
|
@ -55,6 +55,9 @@ const handleCancel = () => { |
|
|
|
const handleStart = () => { |
|
|
|
webSocketStore.sendCommandMsg(cleanDisinfectionRecordByKeysJSON(props.keys)) |
|
|
|
enable.value = false; |
|
|
|
setTimeout(() => { |
|
|
|
webSocketStore.sendCommandMsg(getAllLocalHistoryData); |
|
|
|
}, 300) |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|