From 162ae5ea186e87e872ddb7417249791dae514076 Mon Sep 17 00:00:00 2001 From: xielue Date: Sun, 18 Jun 2023 15:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/application/mk/basic-pages/list.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/application/mk/basic-pages/list.vue b/src/application/mk/basic-pages/list.vue index 19ca3f9..451e1c1 100644 --- a/src/application/mk/basic-pages/list.vue +++ b/src/application/mk/basic-pages/list.vue @@ -269,9 +269,11 @@ export default { }, // 修改日期 onDateChange(date) { // 日期选择器事件 - if (date && date.length) { // 如果有值 + if (date && date.length) { // 如果有值 + date[0]._d.setHours(0, 0, 0, 0); + date[1]._d.setHours(23, 59, 59, 59); this.start_time = parseInt(date[0]._d.getTime() / 1000); // 将日期转换为时间戳 - this.end_time = parseInt(date[1]._d.getTime() / 1000); // 将日期转换为时间戳 + this.end_time = parseInt( date[1]._d.getTime() / 1000); // 将日期转换为时间戳 } else { // 如果没有值 this.start_time = 0; // 将日期转换为时间戳 this.end_time = 0; // 将日期转换为时间戳