From c2a3d4b8a8d4bbc98939cd850a967938b8f3332f Mon Sep 17 00:00:00 2001 From: zhongzm Date: Fri, 22 Nov 2024 10:14:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E7=B2=92=E5=BA=A6=EF=BC=8C=E4=BF=AE=E6=94=B9=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/perfManage/kpiKeyTarget/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/perfManage/kpiKeyTarget/index.vue b/src/views/perfManage/kpiKeyTarget/index.vue index dc48de65..a4798631 100644 --- a/src/views/perfManage/kpiKeyTarget/index.vue +++ b/src/views/perfManage/kpiKeyTarget/index.vue @@ -208,8 +208,8 @@ const rangePicker = reactive({ ...Object.fromEntries(networkElementTypes.value.map(type => [ type, [ - dayjs().startOf('hour').valueOf().toString(), // 当前小时内 - dayjs().endOf('hour').valueOf().toString() + dayjs().subtract(1, 'hour').startOf('hour').valueOf().toString(), // 上一小时开始 + dayjs().startOf('hour').add(1, 'hour').valueOf().toString(), // 当前小时结束 ] ])) as Record, placeholder: [t('views.monitor.monitor.startTime'), t('views.monitor.monitor.endTime')] as [string, string], @@ -336,7 +336,7 @@ const fetchData = async (type: AllChartType) => { endTime, sortField: 'timeGroup', sortOrder: 'desc', - interval: 5, + interval: 60*15, }); if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {