diff --git a/components/applyForm/index.vue b/components/applyForm/index.vue index 0865ebe..8e73955 100644 --- a/components/applyForm/index.vue +++ b/components/applyForm/index.vue @@ -46,7 +46,7 @@ @@ -308,7 +308,6 @@ // 检查 item.value 是否存在于数组 b 中 const exists = _arr.includes(item1.value); // 根据检查结果设置 checked 属性 - console.log("exists", exists) item1.checked = exists; }); } diff --git a/packages/apply/index.vue b/packages/apply/index.vue index 02823d8..cf860ef 100644 --- a/packages/apply/index.vue +++ b/packages/apply/index.vue @@ -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, diff --git a/packages/course/detail.vue b/packages/course/detail.vue index 1c0e53f..1980071 100644 --- a/packages/course/detail.vue +++ b/packages/course/detail.vue @@ -293,7 +293,7 @@ } &-noinfo { - width: calc(100% -160rpx); + width: calc(100% - 160rpx); position: absolute; top: calc(50% - 340rpx); left: 50%;