master
lion 12 months ago
parent 966d8fe905
commit 9ad990ab97

@ -36,38 +36,41 @@
</div>
</div>
</template>
<template v-slot:description>
<template v-slot:file_ids>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Description
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Poster
</div>
<div class="xy-table-item-content">
<el-input type="textarea" :rows="5" v-model="form.description"></el-input>
<el-upload :action="action" class='upload-demo' list-type="picture-card" accept=".PNG,.jpg,.jpeg,.bmp,.svg"
:file-list="pictureList" ref="pictureUpload" :auto-upload="true" :on-success="handlesuccessP"
:on-remove="handleRemoveP">
<i class="el-icon-plus"></i>
</el-upload>
</div>
</div>
</template>
<template v-slot:file_ids>
<template v-slot:description>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Poster
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Description
</div>
<div class="xy-table-item-content">
<el-upload :action="action" class='upload-demo' list-type="picture-card"
accept=".PNG,.jpg,.jpeg,.bmp,.svg" :file-list="pictureList" ref="pictureUpload" :auto-upload="true"
:on-success="handlesuccessP" :on-remove="handleRemoveP">
<i class="el-icon-plus"></i>
</el-upload>
<!-- <el-input type="textarea" :rows="5" v-model="form.description"></el-input> -->
<my-tinymce v-if="showWang" :id="'description'" @input="(e)=>{changeEditor(e,'description')}"
:value="form.description"></my-tinymce>
</div>
</div>
</template>
<template v-slot:content>
<div class="xy-table-item">
<div class="xy-table-item-label" style="font-weight: bold">
<span style="color: red;font-weight: bold;padding-right: 4px;"></span>Content
</div>
<div class="xy-table-item-content">
<my-tinymce v-if="showWang" :id="'content'"
@input="(e)=>{changeEditor(e,'content')}" :value="form.content"></my-tinymce>
<my-tinymce v-if="showWang" :id="'content'" @input="(e)=>{changeEditor(e,'content')}"
:value="form.content"></my-tinymce>
</div>
</div>
</template>
@ -103,8 +106,9 @@
title: '',
sort: 0,
is_visible: 1,
description: '',
file_ids: [],
description: '',
content: ''
},
rules: {
@ -209,8 +213,9 @@
title: '',
sort: 0,
is_visible: 1,
description: '',
file_ids: '',
description: '',
content: ''
}
this.$refs['dialog'].reset()

Loading…
Cancel
Save