单体电池

This commit is contained in:
2025-08-14 18:09:47 +08:00
parent 2cd60ea105
commit ba8b86d523
3 changed files with 22 additions and 12 deletions

View File

@ -85,6 +85,7 @@
<component
:is="activeBtn === 'table' ? 'DtdcTable' : 'DtdcList'"
:tableData="tableData"
:totalSize="totalSize"
:pointIdList="pointIdList"
@chart="chartDetail"
></component>
@ -171,7 +172,6 @@ export default {
// 分页
handleSizeChange(val) {
this.pageSize = val;
if (this.pageSize * this.pageNum > this.totalSize) this.pageNum = 1; //todo
this.$nextTick(() => {
this.getTableData();
});
@ -256,6 +256,9 @@ export default {
init() {
// 只有页面初次加载或切换站点的时候调用电池堆列表,其他情况不需要
this.search = { stackId: "", clusterId: "" }; //保证切换站点时,清空选择项
this.clusterOptions = [];
this.pageNum = 1;
this.totalSize = 0;
this.getStackList();
this.getTableData();
},