Переглянути джерело

未封装的表格组件,重置查询条件时应同时重置分页数据

chenrui 4 роки тому
батько
коміт
08c14507ea

+ 4 - 0
src/views/allocationManagement/storeTransferOut/edit.vue

@@ -290,6 +290,10 @@ export default {
     chooseResetSearchForm () {
       this.chooseQueryParam.productCode = ''
       this.chooseQueryParam.productName = ''
+      this.choosePageNo = 1
+      this.choosePageSize = 10
+      this.choosePaginationProps.total = 0
+      this.choosePaginationProps.current = 1
       this.getChooseProductList(1)
     },
     // 基本信息

+ 8 - 0
src/views/allocationManagement/warehouseAllocation/edit.vue

@@ -324,6 +324,10 @@ export default {
       this.queryParam.productTypeSn3 = undefined
       this.queryParam.warehouseLocationSn = undefined
       this.productType = []
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
       this.getProductList(1)
     },
     // 双击快速添加
@@ -340,6 +344,10 @@ export default {
     chooseResetSearchForm () {
       this.chooseQueryParam.productCode = ''
       this.chooseQueryParam.productName = ''
+      this.choosePageNo = 1
+      this.choosePageSize = 10
+      this.choosePaginationProps.total = 0
+      this.choosePaginationProps.current = 1
       this.getChooseProductList(1)
     },
     // 基本信息

+ 4 - 0
src/views/bulkManagement/bulkWarehousingOrder/edit.vue

@@ -318,6 +318,10 @@ export default {
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn3 = ''
       this.productType = []
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
       this.getDealerProductList(1)
     },
     // 双击快速添加

+ 4 - 0
src/views/inventoryManagement/inventoryWarning/list.vue

@@ -327,6 +327,10 @@ export default {
       this.queryParam.productTypeSn2 = undefined
       this.queryParam.productTypeSn3 = undefined
       this.queryParam.warnTip = undefined
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
       this.pageInit(1)
     },
     //  批量更新

+ 4 - 0
src/views/notice/list.vue

@@ -172,6 +172,10 @@ export default {
     resetSearchForm () {
       this.queryParam.notice.title = undefined
       this.time = []
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
       this.handelSearch(1)
     },
     //  详情

+ 4 - 0
src/views/purchasingManagement/purchaseReturn/edit.vue

@@ -205,6 +205,10 @@ export default {
       this.queryParam.purchaseBillNo = ''
       this.queryParam.productCode = ''
       this.queryParam.productName = ''
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
       this.getPurchaseBillDetailList(1)
     },
     //  添加/编辑