From a8552a425a31b1e4a23dc10523916d41c3e3530d Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Tue, 5 Sep 2023 13:40:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/dialogs/DatePicker.vue | 13 ++++++++++++- src/components/dialogs/TimePicker.vue | 12 +++++++++++- src/mock/command.js | 20 ++++++++++++++++++++ 3 files changed, 43 insertions(+), 2 deletions(-) diff --git a/src/components/dialogs/DatePicker.vue b/src/components/dialogs/DatePicker.vue index ee812a8..d59bbc2 100644 --- a/src/components/dialogs/DatePicker.vue +++ b/src/components/dialogs/DatePicker.vue @@ -49,10 +49,13 @@ diff --git a/src/components/dialogs/TimePicker.vue b/src/components/dialogs/TimePicker.vue index 7357121..428016b 100644 --- a/src/components/dialogs/TimePicker.vue +++ b/src/components/dialogs/TimePicker.vue @@ -48,10 +48,13 @@ diff --git a/src/mock/command.js b/src/mock/command.js index 88ba05d..3d50bce 100644 --- a/src/mock/command.js +++ b/src/mock/command.js @@ -157,3 +157,23 @@ export const sprayLiquidPump_open_for_testJSON = (ctrl, speed) => { speed, } } + +export const updateDateJSON = (year, month, day) => { + return { + command: 'updateDate', + messageId: 'updateDate', + year, + month, + day, + } +} + +export const updateTimeJSON = (hour, min, second) => { + return { + command: 'updateTime', + messageId: 'updateTime', + hour, + min, + second, + } +}