aXin-0810 1 tahun lalu
induk
melakukan
c443102f15
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/views/stock_control/guangFoInventory.vue

+ 3 - 1
src/views/stock_control/guangFoInventory.vue

@@ -152,6 +152,7 @@ export default {
     // 更改每页数量
     handleSizeChange(val) {
       this.pageSize = val
+      this.currentPage = 1
       this.getList({
         ...this.searchForm,
         pageNumber: this.currentPage,
@@ -169,9 +170,10 @@ export default {
     },
     //搜索功能
     async searchFn() {
+      this.currentPage = 1
       await this.getList({
         ...this.searchForm,
-        pageNumber: 1,
+        pageNumber: this.currentPage,
         pageSize: this.pageSize
       })
     },