Update loading + Combine 2 api call in paging + Add dynamic font size for gauge chart

This commit is contained in:
Michael
2025-08-20 17:19:39 +09:00
parent 89ad4c11f6
commit 50aefda2a0
6 changed files with 54 additions and 30 deletions

View File

@ -442,7 +442,7 @@ export default {
chartOption = getGaugeChartOption({
title: chartKey,
value: 75,
value: currentChartData["effcRt"],
isDarkMode: this.isDarkMode,
backgroundRadius: 89,
});

View File

@ -613,20 +613,34 @@ export default {
apiKey = "selectMonthlyEnrgUseMainIdx";
apiKey2 = "selectMonthlyEnrgUseMainIdxPageTotal";
}
var res = await this.postApiReturn({
apiKey: apiKey,
resKey: "eqpmIndMntrData",
sendParam: params,
});
var res2 = await this.postApiReturn({
apiKey: apiKey2,
resKey: "eqpmIndMntrPageTotal",
sendParam: params,
});
var [res, res2] = await Promise.all([
this.postApiReturn({
apiKey: apiKey,
resKey: "eqpmIndMntrData",
sendParam: params,
}),
this.postApiReturn({
apiKey: apiKey2,
resKey: "eqpmIndMntrPageTotal",
sendParam: params,
}),
]);
// var res = await this.postApiReturn({
// apiKey: apiKey,
// resKey: "eqpmIndMntrData",
// sendParam: params,
// });
// var res2 = await this.postApiReturn({
// apiKey: apiKey2,
// resKey: "eqpmIndMntrPageTotal",
// sendParam: params,
// });
this.totalCount = res2[0].totalcount;
this.enrgUseMainIdxDesc = await this.postApiReturn({
apiKey: "selectEnrgUseMainIdxDesc",
resKey: "eqpmIndMntrData",
@ -642,14 +656,12 @@ export default {
no: i + 1,
});
}
this.setGridData({
gridKey: this.gridName,
value: newRes,
});
this.loadGrid = true;
this.makeTooltip();
},
async search() {