|
@@ -133,17 +133,25 @@ export async function rejectInspectedTask(
|
|
questionList: Array<Question>,
|
|
questionList: Array<Question>,
|
|
reason: string
|
|
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(
|
|
questionList = JSON.parse(
|
|
JSON.stringify(questionList, (key, value) => {
|
|
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
|
|
// 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", {
|
|
return httpApp.post<CommonResponse>("/admin/exam/inspected/rejected", {
|
|
studentId,
|
|
studentId,
|
|
questionList,
|
|
questionList,
|
|
- reason
|
|
|
|
|
|
+ reason,
|
|
});
|
|
});
|
|
}
|
|
}
|