|
@@ -290,8 +290,10 @@ export default {
|
|
this.chooseDealerList = res.data.dealerList
|
|
this.chooseDealerList = res.data.dealerList
|
|
}
|
|
}
|
|
_this.$refs.imageSet.setFileList(res.data.imageUrl)
|
|
_this.$refs.imageSet.setFileList(res.data.imageUrl)
|
|
- _this.form = res.data
|
|
|
|
- _this.form.time = [res.data.bannerStartDate, res.data.bannerEndDate]
|
|
|
|
|
|
+ _this.$nextTick(() => {
|
|
|
|
+ _this.form = res.data
|
|
|
|
+ _this.form.time = [res.data.bannerStartDate, res.data.bannerEndDate]
|
|
|
|
+ })
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
@@ -301,6 +303,7 @@ export default {
|
|
if (_this.form.contentType === 'LINK') {
|
|
if (_this.form.contentType === 'LINK') {
|
|
_this.form.content = _this.form.contentLink
|
|
_this.form.content = _this.form.contentLink
|
|
}
|
|
}
|
|
|
|
+ console.log('11111111111:', _this.form)
|
|
// 验证组件必填项
|
|
// 验证组件必填项
|
|
_this.$refs.ruleForm.validate(valid => {
|
|
_this.$refs.ruleForm.validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
@@ -353,13 +356,6 @@ export default {
|
|
},
|
|
},
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
- this.$refs.imageSet.setFileList('')
|
|
|
|
- if (this.contentType === 'VIDEO') {
|
|
|
|
- this.$refs.videoSet.setFileList('')
|
|
|
|
- }
|
|
|
|
- if (this.contentType === 'IMAGE_CONTENT') {
|
|
|
|
- this.$refs.editor.setHtml('')
|
|
|
|
- }
|
|
|
|
this.form = {
|
|
this.form = {
|
|
bannerSn: undefined, // 轮播图sn
|
|
bannerSn: undefined, // 轮播图sn
|
|
bannerName: '', // 轮播图名称
|
|
bannerName: '', // 轮播图名称
|
|
@@ -375,6 +371,15 @@ export default {
|
|
contentLink: '',
|
|
contentLink: '',
|
|
state: 'UNPUBLISH'
|
|
state: 'UNPUBLISH'
|
|
}
|
|
}
|
|
|
|
+ if (this.$refs.imageSet) {
|
|
|
|
+ this.$refs.imageSet.setFileList('')
|
|
|
|
+ }
|
|
|
|
+ if (this.form.contentType === 'VIDEO' && this.$refs.videoSet) {
|
|
|
|
+ this.$refs.videoSet.setFileList('')
|
|
|
|
+ }
|
|
|
|
+ if (this.form.contentType === 'IMAGE_CONTENT') {
|
|
|
|
+ this.$refs.editor.setHtml('')
|
|
|
|
+ }
|
|
this.isDisabled = false
|
|
this.isDisabled = false
|
|
if (this.$refs.ruleForm) {
|
|
if (this.$refs.ruleForm) {
|
|
this.$refs.ruleForm.resetFields()
|
|
this.$refs.ruleForm.resetFields()
|