单体电池
This commit is contained in:
@ -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();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user