zhangjie 8 月之前
父節點
當前提交
93c560e57f
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 二進制
      dist.zip
  2. 2 3
      src/modules/inspection/paperCheck/TaskDetail.vue

二進制
dist.zip


+ 2 - 3
src/modules/inspection/paperCheck/TaskDetail.vue

@@ -266,13 +266,12 @@ export default {
     },
     },
     async toNextPaper() {
     async toNextPaper() {
       if (this.curPaperIndex === this.papers.length - 1) {
       if (this.curPaperIndex === this.papers.length - 1) {
-        if (this.current === this.totalPage) {
+        if (this.current >= this.totalPage) {
           this.$Message.warning("当前已经是最后一条数据了");
           this.$Message.warning("当前已经是最后一条数据了");
           return;
           return;
         } else {
         } else {
-          this.setPage({ current: this.current + 1 });
+          await this.toPage(this.current + 1);
           this.curPaperIndex = 0;
           this.curPaperIndex = 0;
-          await this.getList();
         }
         }
       } else {
       } else {
         this.curPaperIndex++;
         this.curPaperIndex++;