|
@@ -229,6 +229,10 @@ export default {
|
|
|
this.studentNameOrNo = "";
|
|
|
this.donePageList = [];
|
|
|
this.undoPageList = [];
|
|
|
+ this.curPage = null;
|
|
|
+ this.curPagePapers = [];
|
|
|
+ this.curPagePaper = { url: "" };
|
|
|
+ this.lastPaperScanTaskId = "";
|
|
|
|
|
|
if (this.IS_UNDO_MODEL) {
|
|
|
this.curPagePaperIndex = 0;
|
|
@@ -294,16 +298,16 @@ export default {
|
|
|
const data = await studentUnbindTaskListPage({ ...this.filterData });
|
|
|
this.undoPageList.push(...data);
|
|
|
},
|
|
|
- toNextPaper() {
|
|
|
+ async toNextPaper() {
|
|
|
+ if (!this.undoPageList.length && this.IS_UNDO_MODEL)
|
|
|
+ await this.getUndoPageList();
|
|
|
+
|
|
|
if (!this.undoPageList.length) {
|
|
|
this.$message.warning("已全部处理完!");
|
|
|
this.cancel();
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (this.undoPageList.length <= 3 && this.IS_UNDO_MODEL)
|
|
|
- this.getUndoPageList();
|
|
|
-
|
|
|
// 已处理的最多记录10条
|
|
|
if (this.curPage) this.donePageList.push({ ...this.curPage });
|
|
|
if (this.donePageList.length > 10)
|