Merge pull request 'fix : 修改用电量最大值' (#332) from dengjie into dev

Reviewed-on: http://git.feashow.cn/clay/tunnel-cloud-web/pulls/332
This commit is contained in:
2024-03-24 05:48:43 +00:00

View File

@@ -236,14 +236,14 @@ const setValueA = () => {
if (electricityConsumptionMonthly.value === 0 || length.value === null) {
valueA.value.style.height = `0px`;
}
let width = (electricityConsumptionMonthly.value * length.value?.offsetHeight) / 100000;
let width = (electricityConsumptionMonthly.value * length.value?.offsetHeight) / 200000;
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) / 100000;
let width = (monthlySavings.value * length.value?.offsetHeight) / 200000;
valueB.value.style.height = `${width}px`;
}
const getBasicData = (data) => {