Browse Source

供应商履约单页面分页修复

jiandexin1 1 year ago
parent
commit
286c15b4ec
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/store/storeappoint/index.vue

+ 6 - 2
src/views/store/storeappoint/index.vue

@@ -48,6 +48,7 @@
                  :data="appointGoodsData"
                  :page.sync="goodsPage"
                  ref="grouponCrud"
+                 @size-change="sizeAppointChange"
                  @on-load="goodsOnLoad">
         <template slot="menuLeft">
                   <el-button type="primary"
@@ -234,7 +235,7 @@
                 message: "操作成功!"
               });
               this.goodsOnLoad(this.goodsPage)
-              this.$refs.crud.toggleSelection();
+              this.$refs.grouponCrud.toggleSelection();
             });
 
       },
@@ -287,6 +288,9 @@
       sizeChange(pageSize){
         this.page.pageSize = pageSize;
       },
+      sizeAppointChange(pageSize){
+        this.goodsPage.pageSize = pageSize;
+      },
       refreshChange() {
         this.onLoad(this.page, this.query);
       },
@@ -318,7 +322,7 @@
         this.goodsLoading = true;
         appointStoreList(page.currentPage, page.pageSize, this.grouponId).then(res => {
           const data = res.data.data;
-          this.page.total = data.total;
+          this.goodsPage.total = data.total;
           this.appointGoodsData = data.records;
           this.goodsLoading = false;
           this.selectionClear();