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)) {