接口联调
This commit is contained in:
@ -37,7 +37,7 @@
|
||||
stripe
|
||||
style="width: 100%;margin-top: 25px">
|
||||
<el-table-column
|
||||
prop="id"
|
||||
prop="deviceId"
|
||||
label="单体编号">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -65,7 +65,8 @@
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="pageNum"
|
||||
:page-size="pageSize"
|
||||
layout=" prev, pager, next"
|
||||
layout=" prev, pager, next, jumper"
|
||||
:total="totalSize"
|
||||
style="margin-top:15px;text-align: center"
|
||||
>
|
||||
</el-pagination>
|
||||
@ -93,7 +94,7 @@ export default {
|
||||
tableData:[],
|
||||
pageSize:10,//分页栏当前每个数据总数
|
||||
pageNum:1,//分页栏当前页数
|
||||
totalSize:1000,//table表格数据总数
|
||||
totalSize:0,//table表格数据总数
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
@ -133,7 +134,8 @@ export default {
|
||||
getTableData(){
|
||||
this.loading=true;
|
||||
getClusterDataInfoList(this.search.stackId,this.search.clusterId,this.pageNum).then(response => {
|
||||
this.tableData=response?.data || [];
|
||||
this.tableData=response?.rows || [];
|
||||
this.totalSize = response?.total || 0
|
||||
}).finally(()=>{
|
||||
this.loading=false;
|
||||
})
|
||||
|
Reference in New Issue
Block a user