|
@@ -55,11 +55,6 @@
|
|
</el-table-column>
|
|
</el-table-column>
|
|
</el-table>
|
|
</el-table>
|
|
</div>
|
|
</div>
|
|
- <div class="data-check-action-footer">
|
|
|
|
- <el-button type="primary" size="small" @click="toNextPaper"
|
|
|
|
- >下一张</el-button
|
|
|
|
- >
|
|
|
|
- </div>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="data-check-content part-box">
|
|
<div class="data-check-content part-box">
|
|
<div v-if="curPagePapers.length" class="data-check-content-page">
|
|
<div v-if="curPagePapers.length" class="data-check-content-page">
|
|
@@ -125,7 +120,8 @@ export default {
|
|
type: Object,
|
|
type: Object,
|
|
default() {
|
|
default() {
|
|
return {
|
|
return {
|
|
- pages: []
|
|
|
|
|
|
+ curImage: "",
|
|
|
|
+ pageList: []
|
|
};
|
|
};
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -172,9 +168,11 @@ export default {
|
|
this.undoPageList = [];
|
|
this.undoPageList = [];
|
|
|
|
|
|
if (this.IS_UNDO_MODEL) {
|
|
if (this.IS_UNDO_MODEL) {
|
|
|
|
+ this.curPagePaperIndex = 0;
|
|
await this.getUndoPageList();
|
|
await this.getUndoPageList();
|
|
} else {
|
|
} else {
|
|
- this.undoPageList = this.student.pages;
|
|
|
|
|
|
+ this.undoPageList = this.student.pageList;
|
|
|
|
+ this.curPagePaperIndex = this.student.curPagePaperIndex;
|
|
}
|
|
}
|
|
|
|
|
|
if (!this.undoPageList.length) {
|
|
if (!this.undoPageList.length) {
|
|
@@ -225,7 +223,8 @@ export default {
|
|
},
|
|
},
|
|
toNextPaper() {
|
|
toNextPaper() {
|
|
if (!this.undoPageList.length) {
|
|
if (!this.undoPageList.length) {
|
|
- this.$message.error("没有下一张!");
|
|
|
|
|
|
+ this.$message.warning("已全部处理完!");
|
|
|
|
+ this.cancel();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -237,6 +236,7 @@ export default {
|
|
if (this.donePageList.length > 10)
|
|
if (this.donePageList.length > 10)
|
|
this.donePageList = this.donePageList.slice(-10);
|
|
this.donePageList = this.donePageList.slice(-10);
|
|
|
|
|
|
|
|
+ this.curPagePaperIndex = 0;
|
|
this.getNextPaper();
|
|
this.getNextPaper();
|
|
},
|
|
},
|
|
getNextPaper() {
|
|
getNextPaper() {
|
|
@@ -245,7 +245,7 @@ export default {
|
|
this.getStudentList();
|
|
this.getStudentList();
|
|
}
|
|
}
|
|
this.curPagePapers = this.curPage.fileUrls;
|
|
this.curPagePapers = this.curPage.fileUrls;
|
|
- this.switchCurPage(0);
|
|
|
|
|
|
+ this.switchCurPage(this.curPagePaperIndex);
|
|
},
|
|
},
|
|
toBind(row) {
|
|
toBind(row) {
|
|
this.lastPaperScanTaskId = this.curPage.paperScanTaskId;
|
|
this.lastPaperScanTaskId = this.curPage.paperScanTaskId;
|
|
@@ -266,7 +266,11 @@ export default {
|
|
if (!res) return;
|
|
if (!res) return;
|
|
|
|
|
|
this.$message.success("绑定成功!");
|
|
this.$message.success("绑定成功!");
|
|
- this.toNextPaper();
|
|
|
|
|
|
+ if (this.IS_UNDO_MODEL) {
|
|
|
|
+ this.toNextPaper();
|
|
|
|
+ } else {
|
|
|
|
+ this.cancel();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|