Browse Source

修改表格和分页问题

gh_ers
selia-zx 2 months ago
parent
commit
36ca430781
  1. 2
      src/views/centerairC/hostRunReport/index.vue
  2. 3
      src/views/hotWater/hotPumpLog/index.vue

2
src/views/centerairC/hostRunReport/index.vue

@ -84,7 +84,7 @@
></right-toolbar> ></right-toolbar>
</el-row> </el-row>
<el-table v-loading="loading" :data="postList" stripe height="750"> <el-table v-loading="loading" :data="postList" stripe>
<!-- <el-table-column label="主机id" align="center" prop="deviceNum" /> --> <!-- <el-table-column label="主机id" align="center" prop="deviceNum" /> -->
<el-table-column label="时间" align="center" prop="curTime" /> <el-table-column label="时间" align="center" prop="curTime" />
<el-table-column label="蒸发器"> <el-table-column label="蒸发器">

3
src/views/hotWater/hotPumpLog/index.vue

@ -59,7 +59,6 @@
border border
style="width: 100%" style="width: 100%"
v-loading="loading" v-loading="loading"
height="700"
:cell-style="tableRowStyle" :cell-style="tableRowStyle"
class="log_table" class="log_table"
> >
@ -871,9 +870,11 @@ export default {
console.log("列表返回", res); console.log("列表返回", res);
if (res.code == 200 && res.rows) { if (res.code == 200 && res.rows) {
this.tableData = res.rows; this.tableData = res.rows;
this.total = res.total;
this.loading = false; this.loading = false;
} else { } else {
this.tableData = []; this.tableData = [];
this.total = 0;
this.loading = false; this.loading = false;
} }
}); });

Loading…
Cancel
Save