[Frontend]修改切換棟別時即時契約容量占比的錯誤
This commit is contained in:
parent
04bc7fa53e
commit
212808e86e
@ -295,6 +295,7 @@
|
|||||||
unChkedErrCnt: 0,
|
unChkedErrCnt: 0,
|
||||||
};
|
};
|
||||||
var contractCapacity = 0;
|
var contractCapacity = 0;
|
||||||
|
var contractCapacityForchart1, contractCapacityForchart2;
|
||||||
|
|
||||||
$(document).ready(function () {
|
$(document).ready(function () {
|
||||||
$(loadEle).Loading("start");
|
$(loadEle).Loading("start");
|
||||||
@ -302,8 +303,6 @@
|
|||||||
show3DModel();
|
show3DModel();
|
||||||
getSubList();
|
getSubList();
|
||||||
getAutDemVal();
|
getAutDemVal();
|
||||||
getContractValueChange("Arean1");
|
|
||||||
getContractValueChange("Arean2");
|
|
||||||
});
|
});
|
||||||
|
|
||||||
function demoSubList() {
|
function demoSubList() {
|
||||||
@ -388,6 +387,8 @@
|
|||||||
} else {
|
} else {
|
||||||
contractCapacity = (res.data || [])[0]?.contract_value ?? 0;
|
contractCapacity = (res.data || [])[0]?.contract_value ?? 0;
|
||||||
getFirstEletric();
|
getFirstEletric();
|
||||||
|
getContractValueChange("Arean1");
|
||||||
|
getContractValueChange("Arean2");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
null,
|
null,
|
||||||
@ -437,7 +438,7 @@
|
|||||||
chkBajaLoaded();
|
chkBajaLoaded();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
let contractCapacityForchart1, contractCapacityForchart2;
|
|
||||||
function getContractValueChange(compus) {
|
function getContractValueChange(compus) {
|
||||||
let devPath = `Data/${compus}`;
|
let devPath = `Data/${compus}`;
|
||||||
BajaSubscribeElectricmeterByBql({ devicePath: devPath }, (data) => {
|
BajaSubscribeElectricmeterByBql({ devicePath: devPath }, (data) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user