|
@@ -471,15 +471,17 @@ export default {
|
|
|
|
|
|
this.selectPaper(this.curPaperIndex);
|
|
this.selectPaper(this.curPaperIndex);
|
|
},
|
|
},
|
|
- async toActionNextPaper() {
|
|
|
|
|
|
+ async toActionNextPaper(toNext) {
|
|
|
|
+ let curPaperIndex = toNext ? this.curPaperIndex + 1 : this.curPaperIndex;
|
|
if (this.page.current > 1 && this.papers.length === 1) {
|
|
if (this.page.current > 1 && this.papers.length === 1) {
|
|
this.setPage({ current: this.page.current - 1 });
|
|
this.setPage({ current: this.page.current - 1 });
|
|
this.curPaperIndex = this.page.size;
|
|
this.curPaperIndex = this.page.size;
|
|
|
|
+ curPaperIndex = this.curPaperIndex;
|
|
}
|
|
}
|
|
|
|
|
|
await this.getList();
|
|
await this.getList();
|
|
if (!this.papers.length) this.$refs.SimpleImagePreview.cancel();
|
|
if (!this.papers.length) this.$refs.SimpleImagePreview.cancel();
|
|
- this.selectPaper(this.curPaperIndex);
|
|
|
|
|
|
+ this.selectPaper(curPaperIndex);
|
|
},
|
|
},
|
|
async gradingCurPaper({ selectedLevel }) {
|
|
async gradingCurPaper({ selectedLevel }) {
|
|
await paperSelectLevelOrScore(
|
|
await paperSelectLevelOrScore(
|
|
@@ -513,7 +515,7 @@ export default {
|
|
) {
|
|
) {
|
|
this.toActionNextPaper();
|
|
this.toActionNextPaper();
|
|
} else {
|
|
} else {
|
|
- this.toNextPaper();
|
|
|
|
|
|
+ this.toActionNextPaper(true);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|