|
@@ -171,7 +171,7 @@ function parseStudentPage(student: any) {
|
|
student.papers.forEach((paper: any, paperIndex: number) => {
|
|
student.papers.forEach((paper: any, paperIndex: number) => {
|
|
if (!paper.pages) return;
|
|
if (!paper.pages) return;
|
|
paper.pages.forEach((page: any, pageIndex: number) => {
|
|
paper.pages.forEach((page: any, pageIndex: number) => {
|
|
- dataList.value.push({
|
|
|
|
|
|
+ let row = {
|
|
...page,
|
|
...page,
|
|
paperId: paper.id as number,
|
|
paperId: paper.id as number,
|
|
pageIndex: page.index,
|
|
pageIndex: page.index,
|
|
@@ -181,7 +181,13 @@ function parseStudentPage(student: any) {
|
|
studentId: student.id,
|
|
studentId: student.id,
|
|
examId: userStore.curExam?.id,
|
|
examId: userStore.curExam?.id,
|
|
kid: `${student.id}-${0}-${paperIndex}-${pageIndex}`,
|
|
kid: `${student.id}-${0}-${paperIndex}-${pageIndex}`,
|
|
- });
|
|
|
|
|
|
+ };
|
|
|
|
+ if (row.question?.result?.length && Array.isArray(row.question?.result)) {
|
|
|
|
+ row.question.result = row.question.result.map((item: string) =>
|
|
|
|
+ item.replace(/[^#a-zA-Z]/g, "")
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ dataList.value.push(row);
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}
|
|
}
|