aXin-0810 hai 1 ano
pai
achega
c443102f15
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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
       })
     },