接口联调

This commit is contained in:
白菜
2025-06-30 19:06:56 +08:00
parent 62fff8c9f4
commit 7aafcf2113

View File

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