内容发布去掉缩略图

This commit is contained in:
yanran200730
2021-12-22 17:02:47 +08:00
parent 1ed59569e6
commit f9cfba00bc

View File

@@ -58,20 +58,6 @@
:limit="1"> :limit="1">
</ai-uploader> </ai-uploader>
</el-form-item> </el-form-item>
<el-form-item label="缩略图" prop="pictureUrl" style="width: 100%;">
<ai-uploader
:instance="instance"
isShowTip
v-model="form.pictureUrl"
:limit="1"
:cropOps="cropOps"
is-crop>
<template slot="tips">
<p>最多上传1张图片,单个文件最大10MB支持jpgjpegpng格式</p>
<p>图片比例1.61</p>
</template>
</ai-uploader>
</el-form-item>
</el-form> </el-form>
</template> </template>
</ai-card> </ai-card>
@@ -104,7 +90,6 @@
files: [], files: [],
categoryId: '', categoryId: '',
contentType: '0', contentType: '0',
pictureUrl: [],
areaName: '', areaName: '',
thumbUrl: [] thumbUrl: []
}, },
@@ -146,9 +131,6 @@
this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => { this.instance.post(`/app/appcontentinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.form = res.data this.form = res.data
this.form.pictureUrl = res.data.pictureUrl ? [{
url: res.data.pictureUrl
}] : []
} }
}) })
}, },
@@ -175,8 +157,7 @@
moduleId: this.$route.query.moduleId, moduleId: this.$route.query.moduleId,
createUserName: this.user.info.name, createUserName: this.user.info.name,
createUserId: this.user.info.id, createUserId: this.user.info.id,
categoryName: this.cateList.length ? this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName : '', categoryName: this.cateList.length ? this.cateList.filter(v => v.id === this.form.categoryId)[0].categoryName : ''
pictureUrl: this.form.pictureUrl.length ? this.form.pictureUrl[0].url : ''
}).then(res => { }).then(res => {
if (res.code == 0) { if (res.code == 0) {
this.$message.success('提交成功') this.$message.success('提交成功')