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 @@ ...@@ -82,7 +82,7 @@
</div> </div>
</div> </div>
</template> </template>
<template v-if="recordForm.imageUrlArr && recordForm.imageUrlArr.length < 9"> <template v-if="recordForm.imageUrlArr.length < 9">
<div class="upload-img"> <div class="upload-img">
<i class="el-icon-plus avatar-uploader-desc-icon"></i> <i class="el-icon-plus avatar-uploader-desc-icon"></i>
<div class="avatar-uploader-desc-word">上传照片</div> <div class="avatar-uploader-desc-word">上传照片</div>
...@@ -143,6 +143,7 @@ export default { ...@@ -143,6 +143,7 @@ export default {
getActivityRecordDetail(id) { getActivityRecordDetail(id) {
this.$apis.record.getActivityRecordDetail({ Id: id }).then(res => { this.$apis.record.getActivityRecordDetail({ Id: id }).then(res => {
if (res) { if (res) {
if (!res.imageUrlArr) res.imageUrlArr = []
this.recordForm = res this.recordForm = res
} }
}) })
...@@ -328,6 +329,7 @@ export default { ...@@ -328,6 +329,7 @@ export default {
default: default:
this.recordForm.videoUrl = '' this.recordForm.videoUrl = ''
} }
console.log(this.recordForm, '===')
}, },
handleCancel() { handleCancel() {
this.$router.go(-1) this.$router.go(-1)
...@@ -344,6 +346,9 @@ export default { ...@@ -344,6 +346,9 @@ export default {
return return
} }
let params = JSON.parse(JSON.stringify(this.recordForm)) let params = JSON.parse(JSON.stringify(this.recordForm))
if (!params.imageUrlArr.length) {
params.imageUrlArr = ''
}
// 创建 // 创建
if (this.routeInfo.addOrEdit == 1) { if (this.routeInfo.addOrEdit == 1) {
let detailData = await this.$apis.record.findActivity({ activityId: this.recordForm.crowdFundActivityId }) let detailData = await this.$apis.record.findActivity({ activityId: this.recordForm.crowdFundActivityId })
...@@ -376,6 +381,7 @@ export default { ...@@ -376,6 +381,7 @@ export default {
} else { } else {
// 编辑 // 编辑
params.id = this.routeInfo.id params.id = this.routeInfo.id
console.log(params, '--')
this.$apis.record.updateActivityRecord(params).then(res => { this.$apis.record.updateActivityRecord(params).then(res => {
if (res) { if (res) {
this.$message({ this.$message({
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
</div> </div>
</div> </div>
</div> </div>
<div v-else>无</div>
</div> </div>
</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!