邓洁: 修改用电量阈值
This commit is contained in:
@@ -67,7 +67,7 @@ let myEcharts = reactive({});
|
|||||||
const isVisited = ref(false);
|
const isVisited = ref(false);
|
||||||
const showLoading = ref(false)
|
const showLoading = ref(false)
|
||||||
const electricityConsumptionMonthly = ref(0)
|
const electricityConsumptionMonthly = ref(0)
|
||||||
const monthlySavings = ref(4000)
|
const monthlySavings = ref(40000)
|
||||||
const length = ref(null);
|
const length = ref(null);
|
||||||
const valueA = ref();
|
const valueA = ref();
|
||||||
const month = ref(dateFormat('', true));
|
const month = ref(dateFormat('', true));
|
||||||
@@ -105,14 +105,14 @@ const setValueA = () => {
|
|||||||
if (electricityConsumptionMonthly.value === 0 || length.value === null) {
|
if (electricityConsumptionMonthly.value === 0 || length.value === null) {
|
||||||
valueA.value.style.height = `0px`;
|
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`;
|
valueA.value.style.height = `${width}px`;
|
||||||
}
|
}
|
||||||
const setValueB = () => {
|
const setValueB = () => {
|
||||||
if (monthlySavings.value === 0 || length.value === null) {
|
if (monthlySavings.value === 0 || length.value === null) {
|
||||||
valueB.value.style.height = `0px`;
|
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`;
|
valueB.value.style.height = `${width}px`;
|
||||||
}
|
}
|
||||||
const getBasicData = (data) => {
|
const getBasicData = (data) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user