From 52960f929f9b74a6f0312ca3e23d48d9b5706eb2 Mon Sep 17 00:00:00 2001 From: shidongli Date: Thu, 12 Dec 2024 17:01:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/ManuallyCreatingTasks/index.vue | 50 ++++++++++--------- 1 file changed, 27 insertions(+), 23 deletions(-) diff --git a/src/views/system/ManuallyCreatingTasks/index.vue b/src/views/system/ManuallyCreatingTasks/index.vue index c966a32..587f4fb 100644 --- a/src/views/system/ManuallyCreatingTasks/index.vue +++ b/src/views/system/ManuallyCreatingTasks/index.vue @@ -164,19 +164,23 @@
- - 指定时间: - + 指定时间: +
@@ -720,17 +724,17 @@ export default { item.timedata = "" }, - input(item,index){ + input(item, index) { this.$forceUpdate() - // const dateParts = item.nodePlanTime.split(' '); - // const date = new Date(); - // // const year = date.getFullYear(); - // // const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1 - // // const day = String(date.getDate()).padStart(2, '0'); - // const hours = String(date.getHours()).padStart(2, '0'); - // const minutes = String(date.getMinutes()).padStart(2, '0'); - // const ss = String(date.getSeconds()).padStart(2, '0'); - // item.nodePlanTime = dateParts[0]+ ' ' + hours + ':' + minutes + ':' + ss ; + // const dateParts = item.nodePlanTime.split(' '); + // const date = new Date(); + // // const year = date.getFullYear(); + // // const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1 + // // const day = String(date.getDate()).padStart(2, '0'); + // const hours = String(date.getHours()).padStart(2, '0'); + // const minutes = String(date.getMinutes()).padStart(2, '0'); + // const ss = String(date.getSeconds()).padStart(2, '0'); + // item.nodePlanTime = dateParts[0]+ ' ' + hours + ':' + minutes + ':' + ss ; }, // 出院/诊后 @@ -761,7 +765,7 @@ export default { item.routeNodeDay = "" console.log(e, item, 'value3') let yy = new Date().getFullYear(); - let mm = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth()) : (new Date().getMonth()); + let mm = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1);// 月份是从0开始的 let dd = (new Date().getDate()) < 10 ? '0' + (new Date().getDate()) : (new Date().getDate()); let hh = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours(); let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();