Browse Source

装箱单-面辅料-分页

jbb 2 years ago
parent
commit
4f8bddcc74
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/packing-list/fabric-list.vue

+ 6 - 3
src/views/packing-list/fabric-list.vue

@@ -343,7 +343,8 @@ export default {
       // 查询条件
       queryParam: {
         pageNo: '', // 初始页
-        isReference:'0'
+        isReference:'0',
+        pageSize:'50'
       },
       pagination:{
         pageSizeOptions: ["50", "100", "150"],
@@ -409,7 +410,7 @@ export default {
     //分页查询
     getFabricList(){
        this.$nextTick(() => {
-         this.queryParam.pageSize = 50
+        //  this.queryParam.pageSize = 50
           this.loading = true
         fabricList(this.queryParam).then(res => {
            this.loading = false
@@ -438,7 +439,8 @@ export default {
     //重置查询
     searchReset() {
       this.queryParam = {
-        isReference:'0'
+        isReference:'0',
+        pageSize:this.pagination.pageSize
       }
       this.getFabricList()
     },
@@ -713,6 +715,7 @@ export default {
     handleTableChange(pagination, filters, sorter) {
       // console.log('当前页信息>>>>',pagination)
       this.queryParam.pageNo = pagination.current
+      this.queryParam.pageSize = pagination.pageSize
       this.getFabricList()
     }
   },