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