This commit is contained in:
yanran200730
2021-12-22 11:21:25 +08:00
parent a6d286d62d
commit 96eae682c0

View File

@@ -44,6 +44,9 @@
fileType="img"
acceptType=".jpg,.png,.jpeg"
:limit="9">
<template slot="tips">
<p>最多上传9张图片,单个文件最大10MB支持jpgjpegpng格式</p>
</template>
</ai-uploader>
</el-form-item>
<el-form-item v-if="form.contentType === '1'" label="视频" prop="files" style="width: 100%;">
@@ -88,8 +91,7 @@
props: {
instance: Function,
dict: Object,
params: Object,
moduleId: String
params: Object
},
data () {
@@ -173,7 +175,7 @@
moduleId: this.$route.query.moduleId,
createUserName: this.user.info.name,
createUserId: this.user.info.id,
categoryName: 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 => {
if (res.code == 0) {