From 1a8e6742a6289e3fb238e6d48fca3e559ea22811 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 20 Sep 2024 16:34:37 +0800 Subject: [PATCH] fix --- src/api/index.js | 6 + src/pages/allocationReview/list/index.vue | 4 +- src/pages/allocationReview/list/setup.vue | 4 +- .../allocationReview/records/allocation.vue | 4 +- src/pages/allocationReview/records/index.vue | 56 ++-- .../allocationReview/records/outline.vue | 16 +- src/pages/allocationReview/records/people.vue | 28 +- src/pages/myReview/list/index.vue | 162 +++++++--- src/pages/myReview/records/index.vue | 212 ++++++------- src/pages/myReview/theoryReview/index.vue | 292 +++++++++++------- src/store/modules/user.js | 1 - 11 files changed, 464 insertions(+), 321 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index 6b76a1f..976f38d 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -19,4 +19,10 @@ export default { examPaperDetails: `/exam/exam/paper/examPaperDetails`, getPaperQuestionInfoByReviewSetting: `/nakadai/evaluation/getPaperQuestionInfoByReviewSetting`, assignReviewers: `/nakadai/evaluationAssignments/assignReviewers`, + myReviewTask: `/nakadai/evaluation/myReviewTask`, + myReviewTaskByReviewList: `/nakadai/evaluation/myReviewTaskByReviewList`, + reviewTheDetailsReport: `/exam/exam/paper/reviewTheDetailsReport`, + reviewPaper: `/nakadai/evaluation/reviewPaper`, + setComments: `/nakadai/evaluation/setComments`, + getTheLabReportIdUpAndDown: `/nakadai/evaluation/getTheLabReportIdUpAndDown`, } \ No newline at end of file diff --git a/src/pages/allocationReview/list/index.vue b/src/pages/allocationReview/list/index.vue index 4daee85..c439ae9 100644 --- a/src/pages/allocationReview/list/index.vue +++ b/src/pages/allocationReview/list/index.vue @@ -178,8 +178,8 @@ export default { }, date: function (val) { if (val) { - this.filter.startTime = val[0]; - this.filter.endTime = val[1]; + this.filter.startTime = val[0] + this.filter.endTime = val[1] } else { this.filter.startTime = '' this.filter.endTime = '' diff --git a/src/pages/allocationReview/list/setup.vue b/src/pages/allocationReview/list/setup.vue index 8b39b37..275d7f0 100644 --- a/src/pages/allocationReview/list/setup.vue +++ b/src/pages/allocationReview/list/setup.vue @@ -198,7 +198,7 @@ export default { form.stageId = row.stageId this.submiting = true try { - await this.$post(this.api.evaluationSave, form) + const res = await this.$post(this.api.evaluationSave, form) this.submiting = false if (this.$route.path === '/allocationReview/list' && (hasManualScoreType || form.allowManualGrading)) { // 当前在分配评阅任务页面,并且有主观题,或者允许评阅客观题,就弹框提示 @@ -209,6 +209,8 @@ export default { type: 'warning', closeOnClickModal: false, }) + row.evaluationId = res.evaluationId + localStorage.setItem('reviewRow', JSON.stringify(row)) this.$router.push(`records?competitionId=${row.id}&stageId=${row.stageId}`) } catch (e) { this.close() diff --git a/src/pages/allocationReview/records/allocation.vue b/src/pages/allocationReview/records/allocation.vue index 7411afa..9c83220 100644 --- a/src/pages/allocationReview/records/allocation.vue +++ b/src/pages/allocationReview/records/allocation.vue @@ -144,7 +144,7 @@ export default { const res = await this.$post(this.api.getPaperQuestionInfoByReviewSetting, { paperId, evaluationId: this.row.evaluationId, - keyword: this.outlineKeyword + // keyword: this.outlineKeyword }) this.manualJudgeCount = res.manualJudgeCount const paper = res.examPaperOutlineList @@ -260,7 +260,7 @@ export default { taskType: this.taskType, }) this.allocationVisible = false - this.$parent.calcDifficult() + this.$parent.initData() this.submiting = false } catch (e) { this.submiting = false diff --git a/src/pages/allocationReview/records/index.vue b/src/pages/allocationReview/records/index.vue index 6826b62..e9589d5 100644 --- a/src/pages/allocationReview/records/index.vue +++ b/src/pages/allocationReview/records/index.vue @@ -53,7 +53,7 @@ - @@ -69,12 +69,13 @@ - - +