瀏覽代碼

修改bug

chenrui 10 月之前
父節點
當前提交
ce3a5678cf
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/views/promotionRulesManagement/promotionManagement/addModal.vue

+ 3 - 1
src/views/promotionRulesManagement/promotionManagement/addModal.vue

@@ -164,10 +164,12 @@ export default {
     handleDealerModal () {
     handleDealerModal () {
       this.openDealerModal = true
       this.openDealerModal = true
       const _this = this
       const _this = this
+      let arr = []
       if (_this.chooseDealerList.length == 0) {
       if (_this.chooseDealerList.length == 0) {
         _this.form.dealerSnList = []
         _this.form.dealerSnList = []
+      } else {
+        arr = _this.chooseDealerList.map(item => { return item.dealerSn })
       }
       }
-      const arr = _this.form.dealerSnList
       // 选择经销商回显
       // 选择经销商回显
       _this.$nextTick(() => {
       _this.$nextTick(() => {
         _this.$refs.dealerChoose.pageInit(arr)
         _this.$refs.dealerChoose.pageInit(arr)