From 0616a0d78307fefd9c324bf8e6f87aa506ea98fe Mon Sep 17 00:00:00 2001 From: huliang <1539398430@qq.com> Date: Tue, 3 Jun 2025 17:26:53 +0800 Subject: [PATCH] =?UTF-8?q?=20=E5=8D=80=E9=96=93=E8=A8=88=E8=B2=BB?= =?UTF-8?q?=E5=BA=A6=E6=95=B8=E5=AE=9A=E5=9C=A85=E6=9C=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/EnergyChart.vue | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/views/EnergyChart.vue b/src/views/EnergyChart.vue index 26d4088..ae3dfc8 100644 --- a/src/views/EnergyChart.vue +++ b/src/views/EnergyChart.vue @@ -58,7 +58,10 @@ -

區間計費度數 {{ billingDateRange }}

+

+ 區間計費度數 2025/05/01 - 2025/05/16 + +

@@ -115,7 +118,7 @@ const loading = computed(() => { }); const statisticData = computed(() => { - const currentMonth = dayjs().format("YYYY-MM"); + const currentMonth = "2025-05"; let intervalFlowCost = 0; let intervalEleCost = 0; @@ -298,10 +301,12 @@ const areaBillingData = computed(() => { return { categories: [], series: [] }; } - const today = dayjs(); - const currentMonth = today.format("YYYY-MM"); - const startDate = dayjs(`${currentMonth}-01`); // Get the first day of the current month - const endDate = today; + // const today = dayjs(); + // const currentMonth = today.format("YYYY-MM"); + // const startDate = dayjs(`${currentMonth}-01`); // Get the first day of the current month + // const endDate = today; + const startDate = dayjs("2025-05-01"); + const endDate = dayjs("2025-05-31"); // Filter daily results within the specified date range const areaResults = storeElecTotal.elecFlowCostSummary.dailyResults.filter(