|
@@ -51,10 +51,9 @@
|
|
|
<el-pagination
|
|
|
background
|
|
|
small
|
|
|
- @size-change="handleSizeChange"
|
|
|
@current-change="handleCurrentChange"
|
|
|
- :current-page="currentPage"
|
|
|
- :page-size="param.content.pageSize"
|
|
|
+ :current-page="customParam ? customParam.content.pageNumber : param.content.pageNumber"
|
|
|
+ :page-size="customParam ? customParam.content.pageSize : param.content.pageSize"
|
|
|
layout="total, prev, pager, next, jumper"
|
|
|
:total="total">
|
|
|
</el-pagination>
|
|
@@ -106,14 +105,13 @@ export default {
|
|
|
this.param.content.where.condition = data
|
|
|
}
|
|
|
},
|
|
|
- handleSizeChange(val) {
|
|
|
- // console.log(`每页 ${val} 条`);
|
|
|
- this.param.content.pageSize = val
|
|
|
- this.listData()
|
|
|
- },
|
|
|
handleCurrentChange(val) {
|
|
|
// console.log(`当前页: ${val}`);
|
|
|
- this.param.content.pageNumber = val
|
|
|
+ if (this.customParam) {
|
|
|
+ this.customParam.content.pageNumber = val
|
|
|
+ } else {
|
|
|
+ this.param.content.pageNumber = val
|
|
|
+ }
|
|
|
this.listData()
|
|
|
},
|
|
|
selectRow (row) {
|