考生所在院校:{{ info.realSchool }}
团队名称:{{ info.teamName }}
-考生班级:{{ info.className }}
+考生姓名:{{ info.userName }}
考生学号:{{ info.workNumber }}
@@ -445,11 +445,7 @@ export default { Util.successMsg('删除成功') }, - // 上一个 - async prev () { - - }, - // 下一个 + // 下一个、上一个 async switchRecord (isNext) { const res = await this.$post(this.api.getTheLabReportIdUpAndDown, { competitionId: this.competitionId, @@ -457,7 +453,8 @@ export default { currentReportId: this.reportId }) const id = res[isNext ? 'nextReportId' : 'previousReportId'] - this[isNext ? 'showNext' : 'showPrev'] = !!id + this.showNext = !!res.nextReportId + this.showPrev = !!res.previousReportId if (id) { this.reportId = id this.$router.push(`/theoryReview?id=${id}&u=${this.showUserInfo}&c=${this.competitionId}&s=${this.stageId}`) @@ -473,13 +470,13 @@ export default { const params = [] paper.forEach(e => { e.userAnswerList.forEach(n => { - n.reviewScore !== '' && params.push({ + n.originUserScore !== n.reviewScore && params.push({ assignmentDetailId: n.assignmentDetailId, reviewScore: n.reviewScore, }) }) }) - await this.$post(this.api.reviewPaper, params) + if (params.length) await this.$post(this.api.reviewPaper, params) Util.successMsg('保存成功') } finally { this.submiting = false