内容发布去掉缩略图
This commit is contained in:
21
packages/3.0.0/AppContentInfo/components/Add.vue
vendored
21
packages/3.0.0/AppContentInfo/components/Add.vue
vendored
@@ -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,支持jpg、jpeg、png格式</p>
|
|
||||||
<p>图片比例:1.6:1</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('提交成功')
|
||||||
|
|||||||
Reference in New Issue
Block a user