浏览代码

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

chenrui 4 年之前
父节点
当前提交
cd6106286f

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

@@ -240,6 +240,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/common/chooseProductsModal.vue

@@ -234,6 +234,10 @@ export default {
       this.queryParam.productTypeSn2 = ''
       this.queryParam.productTypeSn3 = ''
       this.queryParam.productType = []
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
     },
     //  重置
     resetSearchForm () {

+ 4 - 0
src/views/dealerManagement/merchantInfoManagement/permissionSetting.vue

@@ -295,6 +295,10 @@ export default {
       this.queryParam.goodsType = undefined
       this.queryParam.goodsName = ''
       this.queryParam.goodsCode = ''
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
       this.getProductList(1)
     },
     // 返回

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

@@ -357,6 +357,10 @@ export default {
       this.queryParam.productTypeSn3 = undefined
       this.queryParam.stockState = undefined
       this.productType = []
+      this.pageNo = 1
+      this.pageSize = 10
+      this.paginationProps.total = 0
+      this.paginationProps.current = 1
       this.pageInit(1)
     },
     //  批量更新

+ 3 - 0
src/views/promotionRulesManagement/promotionRules/editRuleModal.vue

@@ -318,8 +318,11 @@ export default {
           form.promoActiveSn = this.$route.params.sn
           if (form.promoRuleType == 'BUY_PROD_GIVE_MONEY' && form.promoType == 'promo_amount_per') { //  买产品送采购额  百分比
             form.promoAmountPer = Number(form.promoAmountPer) / 100
+            form.orderAmounts = ''
+            form.promoAmount = ''
           } else if (form.promoRuleType == 'BUY_PROD_GIVE_MONEY' && form.promoType == 'promo_amount') { //  买产品送采购额  金额
             form.orderAmount = form.orderAmounts
+            form.promoAmountPer = ''
           }
           if (!_this.itemSn) { delete form.id }
           promoRuleSave(form).then(res => {