fix : 修复设备修改判空提示

This commit is contained in:
2024-03-12 15:48:35 +08:00
parent 41bf8ec484
commit 69bb871934
2 changed files with 73 additions and 29 deletions

View File

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