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