|
@@ -313,7 +313,8 @@ export default {
|
|
|
//获取试卷标志(成功获取true,没有试卷false)
|
|
|
paperMark: true,
|
|
|
tags: [],
|
|
|
- answerHtml: null
|
|
|
+ answerHtml: null,
|
|
|
+ rangeId: null
|
|
|
};
|
|
|
},
|
|
|
methods: {
|
|
@@ -552,10 +553,16 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
async getMarkRange() {
|
|
|
- console.log("getMarkRange");
|
|
|
if (!this.paperMark) {
|
|
|
return;
|
|
|
}
|
|
|
+ if (this.rangeId == this.task.markRangeId) {
|
|
|
+ for (let resultItem of this.resultItems) {
|
|
|
+ resultItem.score = "";
|
|
|
+ }
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ this.resultItems.splice(0, this.resultItems.length);
|
|
|
var self = this;
|
|
|
await self.$http
|
|
|
.get(MARKING_API + "/markRanges/" + self.task.markRangeId)
|
|
@@ -573,6 +580,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getNext() {
|
|
|
+ if (this.rangeId == null) {
|
|
|
+ this.rangeId = this.task.markRangeId;
|
|
|
+ }
|
|
|
this.answerHtml = null;
|
|
|
//试卷全部评完且回评时不继续获取试卷
|
|
|
if (this.backMark && this.allMarked) {
|
|
@@ -582,10 +592,11 @@ export default {
|
|
|
await this.markInit();
|
|
|
await this.getPaper();
|
|
|
await this.getAnswerHtml();
|
|
|
- await this.getChangeTasks();
|
|
|
+ // await this.getChangeTasks();
|
|
|
await this.getMarkRange();
|
|
|
await this.getMarkedTask();
|
|
|
this.backMark = false;
|
|
|
+ this.$loading().close();
|
|
|
},
|
|
|
dateFormatter(row) {
|
|
|
var fulldate = new Date(row.markedOn);
|
|
@@ -596,7 +607,7 @@ export default {
|
|
|
return formatDate;
|
|
|
},
|
|
|
initMarkItem() {
|
|
|
- this.resultItems.splice(0, this.resultItems.length);
|
|
|
+ //this.resultItems.splice(0, this.resultItems.length);
|
|
|
this.markResult = {};
|
|
|
this.markedResult = {};
|
|
|
},
|
|
@@ -610,7 +621,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
async getAnswerHtml() {
|
|
|
- if (this.studentPaper.basePaperId) {
|
|
|
+ if (this.studentPaper.basePaperId && this.examType == "OFFLINE") {
|
|
|
var paperId = this.studentPaper.basePaperId;
|
|
|
await this.$http
|
|
|
.get(QUESTION_API + "/extract/getAnswerHtml/" + paperId)
|
|
@@ -659,7 +670,7 @@ export default {
|
|
|
async created() {
|
|
|
this.loading = true;
|
|
|
await this.markInit();
|
|
|
- await this.getChangeTasks();
|
|
|
+ //await this.getChangeTasks();
|
|
|
await this.getPaper();
|
|
|
await this.getAnswerHtml();
|
|
|
await this.getMarkRange();
|