zhangjie 2 年之前
父節點
當前提交
b439ae95b7
共有 1 個文件被更改,包括 8 次插入4 次删除
  1. 8 4
      src/modules/record/components/LibraryDialog.vue

+ 8 - 4
src/modules/record/components/LibraryDialog.vue

@@ -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)