|
|
|
|
@ -75,16 +75,20 @@
|
|
|
|
|
this.sign_id = res.detail.id
|
|
|
|
|
if (res.detail.data && res.detail.data.length > 0) {
|
|
|
|
|
res.detail.data.map(item => {
|
|
|
|
|
this.course_forms.map(forms=>{
|
|
|
|
|
this.course_forms.map((forms,index)=>{
|
|
|
|
|
if(item.field==forms.field){
|
|
|
|
|
forms.value = item.value?item.value:''
|
|
|
|
|
if(forms.edit_input==='files'){
|
|
|
|
|
this.$set(forms,'fileListArr',item.fileListArr?item.fileListArr:[])
|
|
|
|
|
this.$set(forms,'fileList',item.fileList?item.fileList:[])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
// if (item.value === null) {
|
|
|
|
|
// item.value = ''
|
|
|
|
|
// }
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
console.log("this.course_forms",this.course_forms)
|
|
|
|
|
// this.course_forms = res.detail.data.sort((a, b) => (a.sort - b.sort))
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
@ -196,14 +200,15 @@
|
|
|
|
|
}, 1500)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
console.log("err", err)
|
|
|
|
|
that.isLocked = false
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// 更新报名信息
|
|
|
|
|
async updateApplyCourse() {
|
|
|
|
|
async updateApplyCourse() {
|
|
|
|
|
// console.log("this.apply_form",this.apply_form)
|
|
|
|
|
// return
|
|
|
|
|
let that = this
|
|
|
|
|
this.$u.api.courseUpdateSign({
|
|
|
|
|
id: this.sign_id,
|
|
|
|
|
|