|
@@ -79,7 +79,7 @@
|
|
|
</a-col>
|
|
|
<a-col :md="24" :sm="24" v-show="chooseDealerList && chooseDealerList.length>0">
|
|
|
<div class="buyerBox">
|
|
|
- <a-tag :closable="isDisabled" v-for="con in chooseDealerList" id="promotionList-dealerSn" :key="con.dealerSn" @close="delBuyerName(con)">
|
|
|
+ <a-tag :closable="!isDisabled" v-for="con in chooseDealerList" id="promotionList-dealerSn" :key="con.dealerSn" @close="delBuyerName(con)">
|
|
|
{{ con.dealerName }}
|
|
|
</a-tag>
|
|
|
</div>
|
|
@@ -250,6 +250,7 @@ export default {
|
|
|
},
|
|
|
// 打开 选择经销商弹窗
|
|
|
handleDealerModal () {
|
|
|
+ console.log('111111111111:', this.chooseDealerList)
|
|
|
this.chooseSnList = this.chooseDealerList.map(item => item.dealerSn)
|
|
|
this.openDealerModal = true
|
|
|
},
|
|
@@ -258,8 +259,21 @@ export default {
|
|
|
this.chooseSnList = []
|
|
|
this.openDealerModal = false
|
|
|
},
|
|
|
+ // 部分经销商 删除
|
|
|
+ delBuyerName (row) {
|
|
|
+ const pos = this.chooseDealerList.findIndex(item => item.dealerSn == row.dealerSn)
|
|
|
+ if (pos > 0) {
|
|
|
+ this.chooseDealerList.splice(pos, 1)
|
|
|
+ }
|
|
|
+ console.log('222222:', pos, this.chooseDealerList)
|
|
|
+ },
|
|
|
// 参与经销商 change
|
|
|
- changeDealerScope () {},
|
|
|
+ changeDealerScope (val) {
|
|
|
+ this.form.allDealerFlag = val
|
|
|
+ if (val == '1') {
|
|
|
+ this.chooseDealerList = []
|
|
|
+ }
|
|
|
+ },
|
|
|
// 返回列表
|
|
|
handleBack () {
|
|
|
this.$router.push({ name: 'carouselImageList', query: { closeLastOldTab: true } })
|
|
@@ -277,6 +291,9 @@ export default {
|
|
|
} else if (res.data.contentType == 'LINK') {
|
|
|
_this.form.contentLink = res.data.content
|
|
|
}
|
|
|
+ if (res.data.allDealerFlag == '0') {
|
|
|
+ this.chooseDealerList = res.data.dealerList
|
|
|
+ }
|
|
|
_this.$refs.imageSet.setFileList(res.data.imageUrl)
|
|
|
_this.form = res.data
|
|
|
_this.form.time = [res.data.bannerStartDate, res.data.bannerEndDate]
|