|
@ -49,10 +49,13 @@ |
|
|
|
|
|
|
|
|
<script setup> |
|
|
<script setup> |
|
|
import { ref } from 'vue' |
|
|
import { ref } from 'vue' |
|
|
import { useSettingStore } from '@/store' |
|
|
|
|
|
|
|
|
import { useSettingStore, useWebSocketStore } from '@/store' |
|
|
import moment from 'moment' |
|
|
import moment from 'moment' |
|
|
|
|
|
import { updateDateJSON } from '@/mock/command' |
|
|
|
|
|
|
|
|
const settingStore = useSettingStore() |
|
|
const settingStore = useSettingStore() |
|
|
|
|
|
const webSocketStore = useWebSocketStore() |
|
|
|
|
|
|
|
|
const props = defineProps({ |
|
|
const props = defineProps({ |
|
|
hideDatePicker: { |
|
|
hideDatePicker: { |
|
|
type: Function, |
|
|
type: Function, |
|
@ -80,6 +83,14 @@ const handleCancel = () => { |
|
|
|
|
|
|
|
|
const selectDate = () => { |
|
|
const selectDate = () => { |
|
|
settingStore.updateCurrentDate(currentDate.value) |
|
|
settingStore.updateCurrentDate(currentDate.value) |
|
|
|
|
|
console.log(currentDate.value) |
|
|
|
|
|
webSocketStore.sendCommandMsg( |
|
|
|
|
|
updateDateJSON( |
|
|
|
|
|
parseInt(currentDate.value[0]), |
|
|
|
|
|
parseInt(currentDate.value[1]), |
|
|
|
|
|
parseInt(currentDate.value[2]), |
|
|
|
|
|
), |
|
|
|
|
|
) |
|
|
props.hideDatePicker() |
|
|
props.hideDatePicker() |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|