|
@@ -160,7 +160,9 @@
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
:current-page="currentPage"
|
|
:current-page="currentPage"
|
|
:page-size="pageSize"
|
|
:page-size="pageSize"
|
|
- layout="total, prev, pager, next, jumper"
|
|
|
|
|
|
+ :page-sizes="[10, 30, 50, 100]"
|
|
|
|
+ @size-change="handleSizeChange"
|
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
:total="total"
|
|
:total="total"
|
|
>
|
|
>
|
|
</el-pagination>
|
|
</el-pagination>
|
|
@@ -294,6 +296,10 @@ export default {
|
|
this.currentPage = val;
|
|
this.currentPage = val;
|
|
this.searchForm();
|
|
this.searchForm();
|
|
},
|
|
},
|
|
|
|
+ handleSizeChange(val) {
|
|
|
|
+ this.pageSize = val;
|
|
|
|
+ this.searchForm();
|
|
|
|
+ },
|
|
//查询方法
|
|
//查询方法
|
|
searchForm() {
|
|
searchForm() {
|
|
var param = new URLSearchParams(this.formSearch);
|
|
var param = new URLSearchParams(this.formSearch);
|