From 02c1bcc892d9d62044005fe154aec26cbe3b36e7 Mon Sep 17 00:00:00 2001 From: IMaster Date: Tue, 16 Jul 2024 01:20:29 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=95=B0=E6=8D=AE=E5=9B=9E?= =?UTF-8?q?=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: IMaster --- Web/src/views/home/widgets/components/schedule.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Web/src/views/home/widgets/components/schedule.vue b/Web/src/views/home/widgets/components/schedule.vue index f5926c9cf..57919aaf1 100644 --- a/Web/src/views/home/widgets/components/schedule.vue +++ b/Web/src/views/home/widgets/components/schedule.vue @@ -88,7 +88,7 @@ const handleQuery = async () => { // 按天查询 const handleQueryByDate = async (date: any) => { state.queryParams.startTime = FormatDateDelHMS(date); - state.queryParams.endTime = FormatDateDelHMS(date); + state.queryParams.endTime = FormatDateEndHMS(date); let params = Object.assign(state.queryParams); var res = await getAPI(SysScheduleApi).apiSysSchedulePagePost(params); state.TodayScheduleData = res.data.result ?? []; @@ -139,6 +139,14 @@ function FormatDateDelHMS(date: any) { return newDate; } +function FormatDateEndHMS(date: any) { + var newDate = new Date(date); + newDate.setHours(23); + newDate.setMinutes(59); + newDate.setSeconds(59); + return newDate; +} + // 格式化日期 function FormatDate(date: any) { return dayjs(date).format('YYYY-MM-DD'); -- Gitee