Browse Source

供应商产能报表-分页器

jbb 2 years ago
parent
commit
038ec57a36
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/reportForms/supply-capacity-table.vue

+ 6 - 1
src/views/reportForms/supply-capacity-table.vue

@@ -116,7 +116,7 @@
         :data-source="supplyCapacityData"
         :loading="loading"
         :pagination="pagination"
-        :scroll="{ x: 1800}"
+        :scroll="{ x: 1800,y:500}"
         @change="handleTableChange"
       >
       </a-table>
@@ -236,6 +236,9 @@ export default {
       open:false,
       // 分页
       pagination: {
+        pageSizeOptions: ["10","50", "100", "150"],
+        showSizeChanger: true,
+        pageSize:10
         // total: '',
         // current: 0,
         // pageSize: 0
@@ -274,6 +277,7 @@ export default {
               current: res.result.current,
               pageSize: res.result.size
             }
+            debugger
           }
         })
       })
@@ -402,6 +406,7 @@ export default {
         this.isorter.order = sorter.order == 'ascend' ? 'asc' : 'desc'
       }
       this.queryParam.pageNo = pagination.current
+      this.queryParam.pageSize = pagination.pageSize
       this.getSupplyCapList()
     }
   }