Эх сурвалжийг харах

Merge branch 'release_1.3.10' of http://git.qmth.com.cn/markingcloud/stmms-web into release_1.3.11

刘洋 1 жил өмнө
parent
commit
f27c658ea8

+ 13 - 5
src/api/inspectPage.ts

@@ -133,17 +133,25 @@ export async function rejectInspectedTask(
   questionList: Array<Question>,
   reason: string
 ) {
+  // questionList = questionList.map((item: any) => {
+  //   if (Array.isArray(item.trackList)) {
+  //     item.trackList = item.trackList.map((v: any) => {
+  //       delete v.isByMultMark;
+  //       return v;
+  //     });
+  //   }
+  //   return item;
+  // });
   questionList = JSON.parse(
     JSON.stringify(questionList, (key, value) => {
-      const keys:string[] = ['markerId','color'];
+      const keys: string[] = ["markerId", "color", "isByMultMark"];
       // eslint-disable-next-line @typescript-eslint/no-unsafe-return
-      return !key.startsWith("__") && !keys.includes(key) ? value : undefined ;
-    }
-    )
+      return !key.startsWith("__") && !keys.includes(key) ? value : undefined;
+    })
   );
   return httpApp.post<CommonResponse>("/admin/exam/inspected/rejected", {
     studentId,
     questionList,
-    reason
+    reason,
   });
 }

+ 3 - 3
src/devLoginParams.ts

@@ -59,10 +59,10 @@
 export const LOGIN_CONFIG = {
   isAdmin: true,
   forceChange: true,
-  loginName: "admin-test",
+  loginName: "admin01",
   password: "123456",
-  examId: "164",
-  markerId: "null",
+  examId: "292",
+  markerId: null,
 };
 
 /** 255 评卷员 */