|
@@ -82,14 +82,14 @@
|
|
|
</a-form-model-item>
|
|
|
<a-form-model-item label="内容" prop="content" v-show="form.contentType =='IMAGE_CONTENT'">
|
|
|
<editor
|
|
|
- v-show="pageType === 'add'"
|
|
|
+ v-if="pageType === 'add'"
|
|
|
id="promotionEdit-editor"
|
|
|
ref="editor"
|
|
|
class="promotionEdit-editor"
|
|
|
@on-change="editorChange"
|
|
|
:cache="false"></editor>
|
|
|
<editor
|
|
|
- v-show="pageType === 'edit'&&!isDisabled"
|
|
|
+ v-if="pageType === 'edit'&&!isDisabled"
|
|
|
id="promotionEdit-editor"
|
|
|
ref="editor"
|
|
|
class="promotionEdit-editor"
|
|
@@ -289,7 +289,7 @@ export default {
|
|
|
if (valid) {
|
|
|
_this.form.promoActiveSn = this.itemId
|
|
|
const formData = JSON.parse(JSON.stringify(_this.form))
|
|
|
- if (this.pageType === 'add') {
|
|
|
+ if (this.pageType === 'add' || (this.pageType === 'edit' && !this.isDisabled)) {
|
|
|
formData.imageSet = formData.imageSet ? formData.imageSet.split(',') : []
|
|
|
}
|
|
|
formData.showFlag = formData.enabledFlag == 0 ? '0' : formData.showFlag
|
|
@@ -331,7 +331,7 @@ export default {
|
|
|
isShow (newValue, oldValue) {
|
|
|
if (!newValue) {
|
|
|
this.$emit('close')
|
|
|
- if (this.pageType == 'add' || !this.isDisabled) {
|
|
|
+ if (this.pageType == 'add' || (this.pageType == 'edit' && !this.isDisabled)) {
|
|
|
this.$refs.imageSet.setFileList('')
|
|
|
this.$refs.videoSet.setFileList('')
|
|
|
}
|