45b80b92 by weimo934

fix():修改更正变更综合查询分页

1 parent 103ff0b3
......@@ -41,7 +41,8 @@
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background layout="prev, pager, next,total" :total="total">
<el-pagination background layout="prev, pager, next,total" :total="total"
:current-page="pageNo" :page-size="pageSize" @current-change="handleCurrentChange">
</el-pagination>
</div>
</div>
......@@ -75,17 +76,14 @@
created() {
},
mounted() {
this.getData({
pageNo: this.pageNo,
pageSize: this.pageSize,
})
this.queryData.pageSize=this.pageSize
this.getData(this.queryData);
this.$nextTick(() => {
this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255;
});
},
methods: {
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pageNo = val;
this.queryData.pageNo = val;
this.getData(this.queryData);
......@@ -118,7 +116,6 @@
//点击办理
handleClick(row) {
let path = "";
console.log(row)
switch (row.dylx) {
case "zrz":
path = "/zrz";
......
......@@ -41,7 +41,7 @@
</el-table-column>
</el-table>
<div class="pagination">
<el-pagination background layout="prev, pager, next,total" :total="total"
<el-pagination background layout="prev, pager, next,total" :total="total" :page-size="pageSize"
:current-page="pageNo" @current-change="handleCurrentChange">
</el-pagination>
</div>
......@@ -77,7 +77,8 @@
created() {
},
mounted() {
this.getData({})
this.queryData.pageSize=this.pageSize
this.getData(this.queryData)
this.$nextTick(() => {
this.tableHeight = (document.documentElement.clientHeight || document.body.clientHeight) - 255;
});
......
......@@ -42,7 +42,7 @@
</el-table>
<div class="pagination">
<el-pagination background layout="prev, pager, next,total" :total="total"
:current-page="pageNo" @current-change="handleCurrentChange">
:current-page="pageNo" :page-size="pageSize" @current-change="handleCurrentChange">
</el-pagination>
</div>
......@@ -83,7 +83,8 @@
created() {
},
mounted() {
this.getData({pageSize:15});
this.queryData.pageSize=this.pageSize
this.getData(this.queryData);
this.$nextTick(()=>{
this.tableHeight = this.$refs.dataGrid.offsetHeight - 68;
})
......@@ -108,7 +109,6 @@
this.$refs.hbj.onReset();
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
this.pageNo = val;
this.queryData.pageNo = val;
this.getData(this.queryData);
......