|
@@ -287,21 +287,20 @@ export default {
|
|
if (res.data.bizType && res.data.bizType === 'SHOP_PROMO') {
|
|
if (res.data.bizType && res.data.bizType === 'SHOP_PROMO') {
|
|
_this.isDisabled = true
|
|
_this.isDisabled = true
|
|
}
|
|
}
|
|
-
|
|
|
|
- if (res.data.contentType == 'IMAGE_CONTENT') {
|
|
|
|
- _this.$refs.editor.setHtml(res.data.content)
|
|
|
|
- } else if (res.data.contentType == 'VIDEO') {
|
|
|
|
- _this.$refs.videoSet.setFileList(res.data.content)
|
|
|
|
- } else if (res.data.contentType == 'LINK') {
|
|
|
|
- res.data.contentLink = res.data.content
|
|
|
|
- }
|
|
|
|
- if (res.data.allDealerFlag == '0') {
|
|
|
|
- this.chooseDealerList = res.data.dealerList
|
|
|
|
- }
|
|
|
|
- _this.$refs.imageSet.setFileList(res.data.imageUrl)
|
|
|
|
_this.form = { ..._this.form, ...res.data }
|
|
_this.form = { ..._this.form, ...res.data }
|
|
- _this.form.contentEditor = res.data.content
|
|
|
|
_this.$nextTick(() => {
|
|
_this.$nextTick(() => {
|
|
|
|
+ if (res.data.contentType == 'IMAGE_CONTENT') {
|
|
|
|
+ _this.$refs.editor.setHtml(res.data.content)
|
|
|
|
+ } else if (res.data.contentType == 'VIDEO') {
|
|
|
|
+ _this.$refs.videoSet.setFileList(res.data.content)
|
|
|
|
+ } else if (res.data.contentType == 'LINK') {
|
|
|
|
+ res.data.contentLink = res.data.content
|
|
|
|
+ }
|
|
|
|
+ if (res.data.allDealerFlag == '0') {
|
|
|
|
+ this.chooseDealerList = res.data.dealerList
|
|
|
|
+ }
|
|
|
|
+ _this.$refs.imageSet.setFileList(res.data.imageUrl)
|
|
|
|
+ _this.form.contentEditor = res.data.content
|
|
_this.form.time = [res.data.bannerStartDate, res.data.bannerEndDate]
|
|
_this.form.time = [res.data.bannerStartDate, res.data.bannerEndDate]
|
|
})
|
|
})
|
|
console.log('22222222222222:', _this.form)
|
|
console.log('22222222222222:', _this.form)
|