From 1c5df35e9d51b1c2196c8dbba23695f2b74d0f45 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Wed, 13 Mar 2024 14:02:39 +0800 Subject: [PATCH] fix: 走航报告下载修改 --- src/views/hotMap/components/selectHour.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/views/hotMap/components/selectHour.vue b/src/views/hotMap/components/selectHour.vue index 1d60226..b044d22 100644 --- a/src/views/hotMap/components/selectHour.vue +++ b/src/views/hotMap/components/selectHour.vue @@ -63,8 +63,9 @@ this.endPlaceholderData = '������������������' this.format = 'yyyy-MM-dd HH' this.valueFormat = 'yyyy-MM-dd HH' + let starTime = dayjs().subtract(1, 'day').format('YYYY-MM-DD') this.value1 = [ - dayjs().subtract(3, 'day').format('YYYY-MM-DD HH'), + `${starTime} 00`, dayjs().format('YYYY-MM-DD HH') ] } else if (nv === 'daterange') { @@ -85,8 +86,9 @@ console.log('this.value1', this.value1) // this.currentHour() if (this.dataType === 'datetimerange') { + let starTime = dayjs().subtract(1, 'day').format('YYYY-MM-DD') this.value1 = [ - dayjs().subtract(3, 'day').format('YYYY-MM-DD HH'), + `${starTime} 00`, dayjs().format('YYYY-MM-DD HH') ] } -- Gitblit v1.8.0