Commit 582165c9 by chenwq

bug修复

1 parent cf87a987
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
<div slot="eventContent" class="content"> <div slot="eventContent" class="content">
<div class="content-bg"> <div class="content-bg">
<!-- <wTextarea ref="textContent" v-model="textValue" @updateText="updateText"></wTextarea> --> <!-- <wTextarea ref="textContent" v-model="textValue" @updateText="updateText"></wTextarea> -->
<el-input type="textarea" :disabled="editForm.object.additionalType == '4'" :rows="9" maxlength="280" show-word-limit v-model="editForm.eventContent" @input="textInput" style="-webkit-user-modify: read-write-plaintext-only !important; width: 656px" placeholder="请输入营销文案"></el-input> <el-input type="textarea" :disabled="editForm.object ? editForm.object.additionalType == '4' : false" :rows="9" maxlength="280" show-word-limit v-model="editForm.eventContent" @input="textInput" style="-webkit-user-modify: read-write-plaintext-only !important; width: 656px" placeholder="请输入营销文案"></el-input>
<div v-for="(itm, index) in previewList" :key="itm.id"> <div v-for="(itm, index) in previewList" :key="itm.id">
<!-- additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板) --> <!-- additionalType 附加对象类型(1素材,2活动,3优惠券,4朋友券模板) -->
<div v-if="itm.additionalType" class="welcome-file"> <div v-if="itm.additionalType" class="welcome-file">
...@@ -469,12 +469,7 @@ export default { ...@@ -469,12 +469,7 @@ export default {
getInfo() { getInfo() {
this.editForm.eventStartDate = moment(this.editForm.eventStartDate).format('YYYY-MM-DD') this.editForm.eventStartDate = moment(this.editForm.eventStartDate).format('YYYY-MM-DD')
this.editForm.eventEndDate = moment(this.editForm.eventEndDate).format('YYYY-MM-DD') this.editForm.eventEndDate = moment(this.editForm.eventEndDate).format('YYYY-MM-DD')
this.previewList = [ this.previewList = this.editForm.object ? [{ attContent: JSON.parse(JSON.stringify(this.editForm.object)), additionalType: this.editForm.object.additionalType }] : []
{
attContent: JSON.parse(JSON.stringify(this.editForm.object)),
additionalType: this.editForm.object.additionalType
}
]
this.recoveryRepeat() this.recoveryRepeat()
this.recoveryEndTime() this.recoveryEndTime()
}, },
...@@ -625,7 +620,7 @@ export default { ...@@ -625,7 +620,7 @@ export default {
.then(() => { .then(() => {
this.cancelJump() this.cancelJump()
}) })
.catch(() => {}) .catch(() => { })
} else { } else {
this.cancelJump() this.cancelJump()
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!