This commit is contained in:
yanran200730
2023-02-20 09:30:10 +08:00
parent 0222a26313
commit a1c7972f9d
9 changed files with 9 additions and 1191 deletions

View File

@@ -81,7 +81,15 @@
getInfo (id) {
this.instance.post(`/app/appexaminationinfo/queryDetailById?id=${id}`).then(res => {
if (res.code === 0) {
this.info = res.data
this.info = {
...res.data,
questions: res.data.questions.map(v => {
return {
...v,
answer: v.items.filter(v => v.checked === '1').map(v => v.content).join(',')
}
})
}
this.assessmentsName = res.data.assessments.map(v => {
return `${this.dict.getLabel('qjEAType', v.assessmentType)} ${this.dict.getLabel('qjEACondition', v.upCondition)} ${v.upScore} `