chenrui 1 yıl önce
ebeveyn
işleme
3cd606dbb9

+ 2 - 2
src/views/promotionRulesManagement/dealerPromotions/detailModal.vue

@@ -451,13 +451,13 @@ export default {
       this.previewList = []
       this.openProductModal = false
     },
-    onChange (e) {
+    onChange () {
       const dataName = this.chooseVal === 'a' ? 'gate' : this.chooseVal === 'b' ? 'regular' : this.chooseVal === 'c' ? 'gift' : this.chooseVal === 'd' ? 'special' : 'giftGroup'
       if (dataName != 'giftGroup') {
         this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(this.form[dataName + 'ProductList'])
       } else {
         // 阶梯数据处理
-        const pos = e.split('')[1]
+        const pos = this.chooseVal.split('')[1]
         if (this.form.giftProductMap && Object.keys(this.form.giftProductMap).length > 0) {
           this.isShowPreview = this.pageType==='salesPage'? false:this.judgeBtnShow(this.form.giftProductMap['GIFT' + (pos * 1 + 1)])
         }