Browse Source

托书-分页

jbb 2 years ago
parent
commit
0a1a405985
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/book/book-list.vue

+ 6 - 3
src/views/book/book-list.vue

@@ -299,7 +299,8 @@ export default {
       selectedNumber:0,//已选择条数
       // 查询条件
       queryParam: {
-        pageNo:''
+        pageNo:'',
+        pageSize:'50'
       }
     }
   },
@@ -317,7 +318,7 @@ export default {
     //获取表格数据
     getBookList(){
       this.$nextTick(() => {
-        this.queryParam.pageSize = 50
+        // this.queryParam.pageSize = 50
         bookList(this.queryParam).then(res => {
           if (res.success) {
            this.bookListData = res.result.records
@@ -343,7 +344,8 @@ export default {
     // 重置
     searchReset() {
       this.queryParam = {
-        pageNo:''
+        pageNo:'',
+        pageSize:this.pagination.pageSize
       }
       this.getBookList()
       // this.getpreBookList()
@@ -547,6 +549,7 @@ export default {
     handleTableChange(pagination, filters, sorter) {
       // console.log('当前页信息>>>>',pagination)
       this.queryParam.pageNo = pagination.current
+      this.queryParam.pageSize = pagination.pageSize
       this.getBookList()
     },
     // 选中行