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 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=A0=BC=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(); From 9c48c653d015a1a047a59504e8bcf7cd4da903bb Mon Sep 17 00:00:00 2001 From: zyy <1787816799@qq.com> Date: Thu, 13 Feb 2020 13:59:10 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/planMonitor/editTool/menus/createRunPlan.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/planMonitor/editTool/menus/createRunPlan.vue b/src/views/planMonitor/editTool/menus/createRunPlan.vue index 1b59130c0..5f58e3ef2 100644 --- a/src/views/planMonitor/editTool/menus/createRunPlan.vue +++ b/src/views/planMonitor/editTool/menus/createRunPlan.vue @@ -116,7 +116,7 @@ export default { } else { this.formModel.right = null; } - createRunPlan(this.$route.query.mapId, this.formModel).then(res => { + createRunPlan(this.$route.query.planId, this.formModel).then(res => { console.log(res); this.doClose() }).catch(error => {