Kaynağa Gözat

预托书-分页

jbb 2 yıl önce
ebeveyn
işleme
3341240f16
1 değiştirilmiş dosya ile 6 ekleme ve 2 silme
  1. 6 2
      src/views/pre-book/preBookList.vue

+ 6 - 2
src/views/pre-book/preBookList.vue

@@ -282,11 +282,13 @@ export default {
         clientAbbreviation: '',
        acSetNo: '',
         smallPo: '',
+        pageSize:'50',
         pageNo: '' // 点击的页数
       },
       pagination: {
         pageSizeOptions: ["50", "100", "150"],
         showSizeChanger: true,
+        pageSize:'50'
         // total: '',
         // current: 0,
         // pageSize: 0
@@ -303,14 +305,14 @@ export default {
     // 分页查询 预托书
     getPreBookData() {
       this.$nextTick(() => {
-        this.queryParam.pageSize = 50
+        // this.queryParam.pageSize = 50
         preBookList(this.queryParam).then(res => {
           if (res.success) {
             this.preBookListData = res.result.records;
             this.pagination = {
               total: res.result.total,
               current: res.result.current,
-              pageSize: res.result.size
+              // pageSize: res.result.size
             }
           }else{
             this.$message.error(res.message)
@@ -431,6 +433,7 @@ export default {
         clientAbbreviation: '',
         acSetNo: '',
         smallPo: '',
+        pageSize:'50',
         pageNo: '' // 点击的页数
       }
       this.getPreBookData()
@@ -461,6 +464,7 @@ export default {
 
     handleTableChange(pagination, filters, sorter) {
       this.queryParam.pageNo = pagination.current
+      this.queryParam.pageSize = pagination.pageSize
       this.getPreBookData()
     },
     aa() {},