Ver Fonte

标记修改

zhangjie há 2 anos atrás
pai
commit
dacccb59f0

+ 4 - 0
src/api.js

@@ -444,6 +444,10 @@ export const markerManualScorePaperList = datas => {
   // ?markerId=49&workId=22&questionId=10&size=6&page=0
   // ?markerId=49&workId=22&questionId=10&size=6&page=0
   return $get(`/api/marktasks/manualScore`, datas);
   return $get(`/api/marktasks/manualScore`, datas);
 };
 };
+export const markerMarkPaperList = datas => {
+  // ?markerId=15&questionId=2&subject=SC&workId=25&stage=&page=0&size=12
+  return $get(`/api/marktasks/markedPapers`, datas);
+};
 
 
 // inspection -------------------------->
 // inspection -------------------------->
 // inspection-log
 // inspection-log

+ 10 - 3
src/modules/grading/marker/MarkerGrading.vue

@@ -140,6 +140,7 @@ import SimpleImagePreview from "@/components/SimpleImagePreview";
 
 
 import {
 import {
   markerTaskList,
   markerTaskList,
+  markerMarkPaperList,
   markerLevelTotalStatData,
   markerLevelTotalStatData,
   workLevelList,
   workLevelList,
   paperSelectLevelOrScore,
   paperSelectLevelOrScore,
@@ -174,7 +175,8 @@ export default {
         undo: {},
         undo: {},
         reject: {
         reject: {
           reject: true
           reject: true
-        }
+        },
+        markPaper: {}
       },
       },
       workId: this.$route.params.workId,
       workId: this.$route.params.workId,
       subjectId: this.$route.params.subjectId,
       subjectId: this.$route.params.subjectId,
@@ -242,10 +244,15 @@ export default {
         datas.level = this.curStep.name;
         datas.level = this.curStep.name;
         datas.sort = "updatedOn,desc";
         datas.sort = "updatedOn,desc";
       }
       }
+
+      let requestAction = null;
       if (this.curStep.type === "markPaper") {
       if (this.curStep.type === "markPaper") {
-        datas.isMark = true;
+        requestAction = markerMarkPaperList;
+      } else {
+        requestAction = markerTaskList;
       }
       }
-      const data = await markerTaskList(datas);
+
+      const data = await requestAction(datas);
       this.papers = data.data.map(paper => {
       this.papers = data.data.map(paper => {
         paper.key = this.$randomCode();
         paper.key = this.$randomCode();
         paper.title = `NO.${paper.sn}`;
         paper.title = `NO.${paper.sn}`;

+ 7 - 4
src/modules/mark/marker/MarkerMarking.vue

@@ -123,6 +123,7 @@ import {
   workLevelList,
   workLevelList,
   paperSelectLevelOrScore,
   paperSelectLevelOrScore,
   markerManualScorePaperList,
   markerManualScorePaperList,
+  markerMarkPaperList,
   paperTaskPass
   paperTaskPass
 } from "@/api";
 } from "@/api";
 
 
@@ -159,7 +160,10 @@ export default {
           isShift: false,
           isShift: false,
           isShiftScore: true
           isShiftScore: true
         },
         },
-        manualScore: {}
+        manualScore: {},
+        markPaper: {
+          stage: "SCORE"
+        }
       },
       },
       stage: "SCORE",
       stage: "SCORE",
       workId: this.$route.params.workId,
       workId: this.$route.params.workId,
@@ -235,15 +239,14 @@ export default {
       if (this.curStep.type === "done") {
       if (this.curStep.type === "done") {
         datas.level = this.curStep.name;
         datas.level = this.curStep.name;
       }
       }
-      if (this.curStep.type === "markPaper") {
-        datas.isMark = true;
-      }
 
 
       let requestAction = null;
       let requestAction = null;
       if (this.curStep.type.includes("shift")) {
       if (this.curStep.type.includes("shift")) {
         requestAction = markerChangeLevelPaperList;
         requestAction = markerChangeLevelPaperList;
       } else if (this.curStep.type === "manualScore") {
       } else if (this.curStep.type === "manualScore") {
         requestAction = markerManualScorePaperList;
         requestAction = markerManualScorePaperList;
+      } else if (this.curStep.type === "markPaper") {
+        requestAction = markerMarkPaperList;
       } else {
       } else {
         requestAction = markerTaskList;
         requestAction = markerTaskList;
       }
       }