From e602a20d665bc974a211f5b2c3188a9d4a335b9e Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Tue, 23 Apr 2024 15:10:35 +0800 Subject: [PATCH] fix: 监测因子向关性 --- src/views/hotMap/components/selectHour.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/hotMap/components/selectHour.vue b/src/views/hotMap/components/selectHour.vue index 1d60226..618281f 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,9 +86,10 @@ 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'), - dayjs().format('YYYY-MM-DD HH') + `${starTime} 00`, + dayjs().subtract(1, 'hour').format('YYYY-MM-DD HH') ] } }, -- Gitblit v1.8.0