|
@@ -5,10 +5,14 @@ import { object2QueryString } from "@/utils/utils";
|
|
|
export function searchExams({
|
|
|
name = "",
|
|
|
enable = "",
|
|
|
+ mode = "",
|
|
|
pageNumber = 1,
|
|
|
pageSize = 10,
|
|
|
}) {
|
|
|
- const data = pickBy({ name, enable, pageNumber, pageSize }, (v) => v !== "");
|
|
|
+ const data = pickBy(
|
|
|
+ { name, enable, mode, pageNumber, pageSize },
|
|
|
+ (v) => v !== ""
|
|
|
+ );
|
|
|
return httpApp.post("/api/admin/exam/query?" + object2QueryString(data));
|
|
|
}
|
|
|
|
|
@@ -32,7 +36,7 @@ export function saveExam({
|
|
|
code = "",
|
|
|
createId = 0,
|
|
|
createTime = "",
|
|
|
- enable = 0,
|
|
|
+ enable = "",
|
|
|
enableIpLimit = 0,
|
|
|
endTime = "",
|
|
|
entryAuthenticationPolicy = "",
|
|
@@ -40,7 +44,7 @@ export function saveExam({
|
|
|
forceFinish = 0,
|
|
|
inProcessFaceStrangerIgnore = 0,
|
|
|
inProcessFaceVerify = 0,
|
|
|
- inProcessLivenessFixedRange = "",
|
|
|
+ inProcessLivenessFixedRange = [],
|
|
|
inProcessLivenessJudgePolicy = "",
|
|
|
inProcessLivenessVerify = 0,
|
|
|
ipAllow = "",
|
|
@@ -48,7 +52,7 @@ export function saveExam({
|
|
|
minDurationSeconds = 0,
|
|
|
mode = "",
|
|
|
monitorRecord = 0,
|
|
|
- monitorVideoSource = [""],
|
|
|
+ monitorVideoSource = [],
|
|
|
name = "",
|
|
|
objectiveScorePolicy = "",
|
|
|
openingSeconds = 0,
|