Commit 64c770a0 by 匡雅琴

Merge branch 'v3.3.0_kuangyq_dev' into 'v3.4.0-0117'

线上问题修复

See merge request !27
2 parents dd6578f8 464d3f05
......@@ -82,7 +82,7 @@
</div>
</div>
</template>
<template v-if="recordForm.imageUrlArr && recordForm.imageUrlArr.length < 9">
<template v-if="recordForm.imageUrlArr.length < 9">
<div class="upload-img">
<i class="el-icon-plus avatar-uploader-desc-icon"></i>
<div class="avatar-uploader-desc-word">上传照片</div>
......@@ -143,6 +143,7 @@ export default {
getActivityRecordDetail(id) {
this.$apis.record.getActivityRecordDetail({ Id: id }).then(res => {
if (res) {
if (!res.imageUrlArr) res.imageUrlArr = []
this.recordForm = res
}
})
......@@ -328,6 +329,7 @@ export default {
default:
this.recordForm.videoUrl = ''
}
console.log(this.recordForm, '===')
},
handleCancel() {
this.$router.go(-1)
......@@ -344,6 +346,9 @@ export default {
return
}
let params = JSON.parse(JSON.stringify(this.recordForm))
if (!params.imageUrlArr.length) {
params.imageUrlArr = ''
}
// 创建
if (this.routeInfo.addOrEdit == 1) {
let detailData = await this.$apis.record.findActivity({ activityId: this.recordForm.crowdFundActivityId })
......@@ -376,6 +381,7 @@ export default {
} else {
// 编辑
params.id = this.routeInfo.id
console.log(params, '--')
this.$apis.record.updateActivityRecord(params).then(res => {
if (res) {
this.$message({
......
......@@ -69,6 +69,7 @@
</div>
</div>
</div>
<div v-else>无</div>
</div>
</div>
</div>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!