From 85dfecff84604400c19967af5c44e52bfac401fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Sun, 18 Feb 2024 16:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E9=82=93=E6=B4=81:=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=94=A8=E7=94=B5=E9=87=8F=E9=98=88=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/usedEle/UsedEle.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/content/usedEle/UsedEle.vue b/src/components/content/usedEle/UsedEle.vue index 00157a2..bde2d48 100644 --- a/src/components/content/usedEle/UsedEle.vue +++ b/src/components/content/usedEle/UsedEle.vue @@ -67,7 +67,7 @@ let myEcharts = reactive({}); const isVisited = ref(false); const showLoading = ref(false) const electricityConsumptionMonthly = ref(0) -const monthlySavings = ref(4000) +const monthlySavings = ref(40000) const length = ref(null); const valueA = ref(); const month = ref(dateFormat('', true)); @@ -105,14 +105,14 @@ const setValueA = () => { if (electricityConsumptionMonthly.value === 0 || length.value === null) { valueA.value.style.height = `0px`; } - let width = (electricityConsumptionMonthly.value * length.value.offsetHeight) / 10000; + let width = (electricityConsumptionMonthly.value * length.value.offsetHeight) / 100000; valueA.value.style.height = `${width}px`; } const setValueB = () => { if (monthlySavings.value === 0 || length.value === null) { valueB.value.style.height = `0px`; } - let width = (monthlySavings.value * length.value.offsetHeight) / 10000; + let width = (monthlySavings.value * length.value.offsetHeight) / 100000; valueB.value.style.height = `${width}px`; } const getBasicData = (data) => {