|
@@ -100,7 +100,12 @@ export default {
|
|
var timeInterval = setInterval(() => {
|
|
var timeInterval = setInterval(() => {
|
|
--this.timeCount;
|
|
--this.timeCount;
|
|
if (this.timeCount === 0) {
|
|
if (this.timeCount === 0) {
|
|
|
|
+ this.$Message.error({
|
|
|
|
+ content: "人脸检测超时,系统退出,请重新登录",
|
|
|
|
+ duration: 15
|
|
|
|
+ });
|
|
clearInterval(timeInterval);
|
|
clearInterval(timeInterval);
|
|
|
|
+ this.logout();
|
|
}
|
|
}
|
|
}, 1000);
|
|
}, 1000);
|
|
|
|
|
|
@@ -147,25 +152,25 @@ export default {
|
|
if (receivedMsg.verifyCount == 1) {
|
|
if (receivedMsg.verifyCount == 1) {
|
|
if (receivedMsg.verifyResult == "TIME_OUT") {
|
|
if (receivedMsg.verifyResult == "TIME_OUT") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
- content: "第一次人脸检测超时,检测失败,系统退出,请重新登录",
|
|
|
|
|
|
+ content: "第一次人脸检测超时,检测失败,系统退出,请重新登录",
|
|
duration: 15
|
|
duration: 15
|
|
});
|
|
});
|
|
this.logout();
|
|
this.logout();
|
|
} else if (receivedMsg.verifyResult == "VERIFY_FAILED") {
|
|
} else if (receivedMsg.verifyResult == "VERIFY_FAILED") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
- content: "第一次人脸检测失败,系统退出,请重新登录",
|
|
|
|
|
|
+ content: "第一次人脸检测失败,系统退出,请重新登录",
|
|
duration: 15
|
|
duration: 15
|
|
});
|
|
});
|
|
this.logout();
|
|
this.logout();
|
|
} else if (receivedMsg.verifyResult == "NOT_ONESELF") {
|
|
} else if (receivedMsg.verifyResult == "NOT_ONESELF") {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
- content: "人脸检测不合格,结束考试",
|
|
|
|
|
|
+ content: "人脸检测不合格,结束考试",
|
|
duration: 15
|
|
duration: 15
|
|
});
|
|
});
|
|
this.faceTestEndHandle("FAILED");
|
|
this.faceTestEndHandle("FAILED");
|
|
} else if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
} else if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
this.$Message.info({
|
|
this.$Message.info({
|
|
- content: "人脸检测成功,请继续完成考试",
|
|
|
|
|
|
+ content: "人脸检测成功,请继续完成考试",
|
|
duration: 15
|
|
duration: 15
|
|
});
|
|
});
|
|
this.faceTestEndHandle("SUCCESS");
|
|
this.faceTestEndHandle("SUCCESS");
|
|
@@ -174,13 +179,13 @@ export default {
|
|
if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
if (receivedMsg.verifyResult == "VERIFY_SUCCESS") {
|
|
// FIXME: 什么逻辑?
|
|
// FIXME: 什么逻辑?
|
|
this.$Message.info({
|
|
this.$Message.info({
|
|
- content: "人脸检测成功,请继续完成考试",
|
|
|
|
|
|
+ content: "人脸检测成功,请继续完成考试",
|
|
duration: 15
|
|
duration: 15
|
|
});
|
|
});
|
|
this.faceTestEndHandle("SUCCESS");
|
|
this.faceTestEndHandle("SUCCESS");
|
|
} else {
|
|
} else {
|
|
this.$Message.error({
|
|
this.$Message.error({
|
|
- content: "人脸检测不合格,结束考试",
|
|
|
|
|
|
+ content: "人脸检测不合格,结束考试",
|
|
duration: 15
|
|
duration: 15
|
|
});
|
|
});
|
|
this.faceTestEndHandle("FAILED");
|
|
this.faceTestEndHandle("FAILED");
|