|
@@ -112,7 +112,7 @@ export default {
|
|
|
let faceEnable;
|
|
|
try {
|
|
|
faceEnable = await this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
+ "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
|
|
|
this.$route.params.examId +
|
|
|
`/IS_FACE_ENABLE`
|
|
|
);
|
|
@@ -126,7 +126,7 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if (faceEnable.data) {
|
|
|
+ if (faceEnable.data.IS_FACE_ENABLE) {
|
|
|
this.faceEnable = true;
|
|
|
|
|
|
// setTimeout(() => {
|
|
@@ -160,7 +160,7 @@ export default {
|
|
|
|
|
|
try {
|
|
|
const snapshotInterval = await this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
+ "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
|
|
|
this.$route.params.examId +
|
|
|
`/SNAPSHOT_INTERVAL`
|
|
|
);
|
|
@@ -169,10 +169,12 @@ export default {
|
|
|
this.snapInterval = setInterval(() => {
|
|
|
this.serverLog(
|
|
|
"debug/S-002001",
|
|
|
- "根据抓拍间隔抓拍:抓拍间隔=" + snapshotInterval.data + "分钟"
|
|
|
+ "根据抓拍间隔抓拍:抓拍间隔=" +
|
|
|
+ snapshotInterval.data.SNAPSHOT_INTERVAL +
|
|
|
+ "分钟"
|
|
|
);
|
|
|
this.toggleSnapNow();
|
|
|
- }, snapshotInterval.data * 60 * 1000);
|
|
|
+ }, snapshotInterval.data.SNAPSHOT_INTERVAL * 60 * 1000);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
this.$Message.error({
|
|
@@ -304,21 +306,21 @@ export default {
|
|
|
|
|
|
if (exam.examType === "PRACTICE") {
|
|
|
const practiceType = (await this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
+ "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
|
|
|
this.$route.params.examId +
|
|
|
`/PRACTICE_TYPE`
|
|
|
)).data;
|
|
|
- this.practiceType = practiceType; // IN_PRACTICE NO_ANSWER
|
|
|
- exam.practiceType = practiceType;
|
|
|
+ this.practiceType = practiceType.SNAPSHOT_INTERVAL; // IN_PRACTICE NO_ANSWER
|
|
|
+ exam.practiceType = practiceType.SNAPSHOT_INTERVAL;
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
let freezeTimeData = await this.$http.get(
|
|
|
- "/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
|
+ "/api/ecs_exam_work/exam/examOrgPropertyFromCache4StudentSession/" +
|
|
|
this.$route.params.examId +
|
|
|
`/FREEZE_TIME`
|
|
|
);
|
|
|
- exam.freezeTime = freezeTimeData.data;
|
|
|
+ exam.freezeTime = freezeTimeData.data.FREEZE_TIME;
|
|
|
} catch (error) {
|
|
|
console.log("获取考试冻结时间失败--忽略");
|
|
|
}
|