From d838891667956391870894ed9c7a4ac81729c166 Mon Sep 17 00:00:00 2001 From: hwj Date: Wed, 4 Mar 2026 16:05:21 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E8=AE=BE=E5=A4=87=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=8F=82=E6=95=B0=E5=88=86=E6=9E=90-=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E7=AD=9B=E9=80=89=E6=97=B6=E9=97=B4=EF=BC=8C=E6=9C=80?= =?UTF-8?q?=E8=BF=91=E4=B8=A4=E5=B0=8F=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iot/deviceParamAnalysis/index.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/iot/deviceParamAnalysis/index.vue b/src/views/iot/deviceParamAnalysis/index.vue index e34fa0a5..2508c84b 100644 --- a/src/views/iot/deviceParamAnalysis/index.vue +++ b/src/views/iot/deviceParamAnalysis/index.vue @@ -35,12 +35,11 @@ @@ -133,9 +132,9 @@ const treeProps = { children: 'children', label: 'label', disabled: 'disabled' } const treeData = ref([]) const buildDefaultDateRange = (): [string, string] => { - const end = dayjs().endOf('day') - const start = end.subtract(6, 'day').startOf('day') - return [start.format('YYYY-MM-DD'), end.format('YYYY-MM-DD')] + const end = dayjs() + const start = end.subtract(2, 'hour') + return [start.format('YYYY-MM-DD HH:mm:ss'), end.format('YYYY-MM-DD HH:mm:ss')] } const dateShortcuts = [