From 0d91bc7c49fef33e3587f0e3da8d5aab2243449a Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 13 Feb 2020 13:42:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=B6=E9=97=B4=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/QueryListPage/DataForm.vue | 1 + src/views/planMonitor/editTool/menus/createRunPlan.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/QueryListPage/DataForm.vue b/src/components/QueryListPage/DataForm.vue index 364a1cf4a..d4858a6ac 100644 --- a/src/components/QueryListPage/DataForm.vue +++ b/src/components/QueryListPage/DataForm.vue @@ -238,6 +238,7 @@ v-model="formModel[item.prop]" :placeholder="item.placeholder" :disabled="item.disabled" + :value-format="'HH:mm:ss'" :picker-options="{ selectableRange: '00:00:00 - 23:59:59' }" /> diff --git a/src/views/planMonitor/editTool/menus/createRunPlan.vue b/src/views/planMonitor/editTool/menus/createRunPlan.vue index de6655f46..1b59130c0 100644 --- a/src/views/planMonitor/editTool/menus/createRunPlan.vue +++ b/src/views/planMonitor/editTool/menus/createRunPlan.vue @@ -125,8 +125,8 @@ export default { }); }, // 转换时间格式 - formatDateTime(inputTime) { - let date = new Date(inputTime); + formatDateTime(date) { + console.log(date, 3333); let h = date.getHours(); h = h < 10 ? ('0' + h) : h; let minute = date.getMinutes();