|
@@ -86,7 +86,11 @@ export default {
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
this.faceIdMsgTimeout = setTimeout(() => {
|
|
this.serverLog("debug/S-002001", "活体检测前抓拍");
|
|
this.serverLog("debug/S-002001", "活体检测前抓拍");
|
|
this.toggleSnapNow();
|
|
this.toggleSnapNow();
|
|
- this.$Message.info("30秒后开始活体检测");
|
|
|
|
|
|
+ this.$Message.info({
|
|
|
|
+ content: "30秒后开始活体检测",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
}, this.$route.query.faceVerifyMinute * 60 * 1000 - 30 * 1000); // 活体检测提醒
|
|
this.faceIdDivTimeout = setTimeout(() => {
|
|
this.faceIdDivTimeout = setTimeout(() => {
|
|
this.serverLog("debug/S-003001", "准备弹出活体检测框");
|
|
this.serverLog("debug/S-003001", "准备弹出活体检测框");
|
|
@@ -109,7 +113,11 @@ export default {
|
|
`/IS_FACE_ENABLE`
|
|
`/IS_FACE_ENABLE`
|
|
);
|
|
);
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- this.$Message.error("获取人脸检测设置失败");
|
|
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "获取人脸检测设置失败",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
this.logout("?LogoutReason=获取人脸检测设置失败");
|
|
this.logout("?LogoutReason=获取人脸检测设置失败");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -163,7 +171,11 @@ export default {
|
|
}, snapshotInterval.data * 60 * 1000);
|
|
}, snapshotInterval.data * 60 * 1000);
|
|
}
|
|
}
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- this.$Message.error("获取人脸抓拍间隔设置失败");
|
|
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "获取人脸抓拍间隔设置失败",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
this.logout("?LogoutReason=获取人脸抓拍间隔设置失败");
|
|
this.logout("?LogoutReason=获取人脸抓拍间隔设置失败");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -172,7 +184,11 @@ export default {
|
|
try {
|
|
try {
|
|
await this.initData();
|
|
await this.initData();
|
|
} catch (error) {
|
|
} catch (error) {
|
|
- this.$Message.error("获取试卷信息失败,退出登录");
|
|
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "获取试卷信息失败,退出登录",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
this.logout("?LogoutReason=获取试卷信息失败");
|
|
this.logout("?LogoutReason=获取试卷信息失败");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -272,7 +288,11 @@ export default {
|
|
paperStruct === undefined ||
|
|
paperStruct === undefined ||
|
|
examQuestionListData === undefined
|
|
examQuestionListData === undefined
|
|
) {
|
|
) {
|
|
- this.$Message.error("获取试卷信息失败");
|
|
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "获取试卷信息失败",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
this.logout("?LogoutReason=获取试卷信息失败");
|
|
this.logout("?LogoutReason=获取试卷信息失败");
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -405,7 +425,11 @@ export default {
|
|
this.resetExamQuestionDirty();
|
|
this.resetExamQuestionDirty();
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.log(error);
|
|
console.log(error);
|
|
- this.$Message.error("提交答案失败");
|
|
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "提交答案失败",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
window._hmt.push([
|
|
window._hmt.push([
|
|
"_trackEvent",
|
|
"_trackEvent",
|
|
"正在考试页面",
|
|
"正在考试页面",
|
|
@@ -504,11 +528,19 @@ export default {
|
|
this.$Spin.hide();
|
|
this.$Spin.hide();
|
|
return;
|
|
return;
|
|
} else {
|
|
} else {
|
|
- this.$Message.error("交卷失败");
|
|
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "交卷失败",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
}
|
|
}
|
|
this.submitLock = false;
|
|
this.submitLock = false;
|
|
} catch (e) {
|
|
} catch (e) {
|
|
- this.$Message.error("交卷失败");
|
|
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "交卷失败",
|
|
|
|
+ duration: 15,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
console.log(e);
|
|
console.log(e);
|
|
}
|
|
}
|
|
this.submitLock = false;
|
|
this.submitLock = false;
|
|
@@ -588,7 +620,11 @@ export default {
|
|
studentAnswer: q.audioFileUrl
|
|
studentAnswer: q.audioFileUrl
|
|
});
|
|
});
|
|
q.saved = true;
|
|
q.saved = true;
|
|
- this.$Message.info("音频题作答已更新");
|
|
|
|
|
|
+ this.$Message.info({
|
|
|
|
+ content: "音频题作答已更新",
|
|
|
|
+ duration: 5,
|
|
|
|
+ closable: true
|
|
|
|
+ });
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
this.$Message.error({
|
|
this.$Message.error({
|