Commit 217516f7 by Kyle_Li

分页逻辑问题

parent 4ecfa244
......@@ -625,6 +625,7 @@ export default {
},
handleSizeChange(val) {
this.currentPage = 1;
this.pageSize = val;
this.getList({
pSize: val,
cPage: 1
......@@ -634,7 +635,7 @@ export default {
this.currentPage = val;
sessionStorage.setItem("frozenlistcurrentPage", Number(val));
this.getList({
pSize: 20,
pSize: this.pageSize,
cPage: val
});
},
......
......@@ -543,6 +543,7 @@ export default {
},
handleSizeChange(val) {
this.currentPage = 1;
this.pageSize = val;
this.getList({
pSize: val,
cPage: 1
......@@ -552,7 +553,7 @@ export default {
this.currentPage = val;
sessionStorage.setItem("frozenlistcurrentPage", Number(val));
this.getList({
pSize: 20,
pSize: this.pageSize,
cPage: val
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment