浏览代码

fix 导入待复核

Michael Wang 3 年之前
父节点
当前提交
754f05ee66

+ 3 - 1
src/features/student/importInspect/ImportInspect.vue

@@ -44,13 +44,13 @@ async function updateSetting() {
   store.setting.examType = settingRes.data.examType;
   store.setting.fileServer = settingRes.data.fileServer;
   store.status.totalCount = settingRes.data.inspectCount;
+  store.status.markedCount = 0;
   store.setting.uiSetting = {
     "answer.paper.scale": 1,
     "score.board.collapse": false,
     "normal.mode": "keyboard",
   } as Setting["uiSetting"];
 
-  console.log(store);
   if (!settingRes.data.inspectCount) {
     store.message = settingRes.data.message;
   } else {
@@ -110,6 +110,8 @@ async function fetchTask(next: boolean, init?: boolean) {
       ];
   }
   if (!currentStudentId.value) return; // 无currentStudentId不调用
+  store.status.markedCount =
+    studentIds.value.indexOf(currentStudentId.value) + 1;
   await updateTask();
 }
 

+ 3 - 1
src/features/student/importInspect/MarkHeader.vue

@@ -40,7 +40,9 @@
     >
       <span>
         <span class="header-small-text">待复核</span>
-        <span class="highlight-text">{{ store.status.totalCount ?? "-" }}</span>
+        <span class="highlight-text">{{
+          store.status.totalCount - store.status.markedCount ?? "-"
+        }}</span>
       </span>
     </div>
     <ZoomPaper v-if="isScanImage()" :store="store" />