From 6f32f7ab410a1664b7d1072716b5902ece7f93ec Mon Sep 17 00:00:00 2001 From: tianyongbao Date: Wed, 21 Jan 2026 17:35:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E6=9B=B2=E7=BA=BF?= =?UTF-8?q?=E5=9B=BE=E8=A1=A8=E7=9A=84=E9=BB=98=E8=AE=A4=E9=97=B4=E9=9A=94?= =?UTF-8?q?=E6=98=AF10=E5=88=86=E9=92=9F=EF=BC=8C=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E5=AE=9E=E6=97=B6=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/other/chartFullscreen.vue | 2 +- src/components/other/dataQuery.vue | 9 +++------ src/components/other/index.vue | 2 +- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/other/chartFullscreen.vue b/src/components/other/chartFullscreen.vue index a4099ec..19fdc33 100644 --- a/src/components/other/chartFullscreen.vue +++ b/src/components/other/chartFullscreen.vue @@ -180,7 +180,7 @@ function loadChartData() { serialNum: serialNum.value, startTime: formatDateMin(start), endTime: formatDateMin(now), - intervalType: dayType.value === 1 ? 1 : dayType.value === 3 ? 2 : 3, + intervalType: dayType.value === 1 ? 2 : dayType.value === 3 ? 2 : 3, }; Taro.showLoading({ title: '加载中...' }); diff --git a/src/components/other/dataQuery.vue b/src/components/other/dataQuery.vue index 20e2e31..90e19fb 100644 --- a/src/components/other/dataQuery.vue +++ b/src/components/other/dataQuery.vue @@ -253,17 +253,14 @@ function queryData() { } // 根据天数差确定 intervalType - // ≤3天: intervalType = 1 - // 3-7天: intervalType = 2 + // ≤7天: intervalType = 2 // 7-14天: intervalType = 3 // 14-30天: intervalType = 4 // 30-60天: intervalType = 5 // >60天: intervalType = 6 - let intervalType = 1; - if (dayDiff > 3 && dayDiff <= 7) { - intervalType = 2; - } else if (dayDiff > 7 && dayDiff <= 14) { + let intervalType = 2; + if (dayDiff > 7 && dayDiff <= 14) { intervalType = 3; } else if (dayDiff > 14 && dayDiff <= 30) { intervalType = 4; diff --git a/src/components/other/index.vue b/src/components/other/index.vue index 72f9339..03aabd1 100644 --- a/src/components/other/index.vue +++ b/src/components/other/index.vue @@ -1502,7 +1502,7 @@ function getDaysAgo(days) { // 设置 intervalType:1天->1, 3天->2, 7天->3 if (days === 1) { - paramsHistory.value.intervalType = 1; + paramsHistory.value.intervalType = 2; } else if (days === 3) { paramsHistory.value.intervalType = 2; } else if (days === 7) {