|
@@ -17,6 +17,7 @@ export async function initExamData(examId: number, examRecordDataId: number) {
|
|
|
{ data: examQuestionListOrig },
|
|
|
{ data: _courseName },
|
|
|
] = await Promise.all([
|
|
|
+ // 是否开放微信小程序作答
|
|
|
httpApp.get<boolean>(
|
|
|
"/api/ecs_exam_work/exam/weixinAnswerEnabled/" + examId,
|
|
|
{
|
|
@@ -24,15 +25,17 @@ export async function initExamData(examId: number, examRecordDataId: number) {
|
|
|
noErrorMessage: true,
|
|
|
}
|
|
|
),
|
|
|
+ // 是否支持人脸识别
|
|
|
httpApp.get<boolean>("/api/ecs_exam_work/exam/faceCheckEnabled/" + examId, {
|
|
|
"axios-retry": { retries: 4 },
|
|
|
noErrorMessage: true,
|
|
|
}),
|
|
|
+ // 是否支持活体检测
|
|
|
httpApp.get<boolean>(
|
|
|
"/api/ecs_exam_work/exam/identificationOfLivingEnabled/" + examId,
|
|
|
{ "axios-retry": { retries: 4 }, noErrorMessage: true }
|
|
|
),
|
|
|
- // 实际上后台都是字符串 {PRACTICE_TYPE: string | null; FREEZE_TIME: string; SNAPSHOT_INTERVAL: string; }
|
|
|
+ // 查询考生的考试批次属性集; 实际上后台都是字符串 {PRACTICE_TYPE: string | null; FREEZE_TIME: string; SNAPSHOT_INTERVAL: string; }
|
|
|
httpApp.get<{
|
|
|
PRACTICE_TYPE: string | null;
|
|
|
FREEZE_TIME: number | null;
|
|
@@ -43,15 +46,18 @@ export async function initExamData(examId: number, examRecordDataId: number) {
|
|
|
`/SNAPSHOT_INTERVAL,PRACTICE_TYPE,FREEZE_TIME`,
|
|
|
{ "axios-retry": { retries: 4 }, noErrorMessage: true }
|
|
|
),
|
|
|
+ // 按ID查询考试批次信息
|
|
|
httpApp.get<Store["exam"]>("/api/ecs_exam_work/exam/" + examId, {
|
|
|
"axios-retry": { retries: 4 },
|
|
|
noErrorMessage: true,
|
|
|
}),
|
|
|
+ // 获取考试记录试卷结构
|
|
|
httpApp.get<PaperStruct>(
|
|
|
"/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
|
|
|
examRecordDataId,
|
|
|
{ "axios-retry": { retries: 4 }, noErrorMessage: true }
|
|
|
),
|
|
|
+ // 获取试题列表
|
|
|
httpApp.get<ExamQuestion[]>(
|
|
|
"/api/ecs_oe_student/examQuestion/findExamQuestionList",
|
|
|
{ "axios-retry": { retries: 4 }, noErrorMessage: true }
|