From 69bb871934387e13b5083536c50c47305bfd1166 Mon Sep 17 00:00:00 2001 From: odjbin <1042039504@qq.com> Date: Tue, 12 Mar 2024 15:48:35 +0800 Subject: [PATCH] =?UTF-8?q?fix=20:=20=E4=BF=AE=E5=A4=8D=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=A4=E7=A9=BA=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/usedEle/UsedEle.vue | 4 +- src/views/device-manage/index.vue | 98 ++++++++++++++++------ 2 files changed, 73 insertions(+), 29 deletions(-) diff --git a/src/components/content/usedEle/UsedEle.vue b/src/components/content/usedEle/UsedEle.vue index 134c72e..bb89afd 100644 --- a/src/components/content/usedEle/UsedEle.vue +++ b/src/components/content/usedEle/UsedEle.vue @@ -168,14 +168,14 @@ const setValueA = () => { if (electricityConsumptionMonthly.value === 0 || length.value === null) { valueA.value.style.height = `0px`; } - let width = (electricityConsumptionMonthly.value * length.value?.offsetHeight) / 40000; + 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) / 40000; + let width = (monthlySavings.value * length.value?.offsetHeight) / 100000; valueB.value.style.height = `${width}px`; } const getBasicData = (data) => { diff --git a/src/views/device-manage/index.vue b/src/views/device-manage/index.vue index e92bbcc..2897ee9 100644 --- a/src/views/device-manage/index.vue +++ b/src/views/device-manage/index.vue @@ -76,7 +76,7 @@ @change="changeFanData(scope.row)"> - +