|
@@ -158,21 +158,22 @@ export default {
|
|
|
"&examRecordDataId=" +
|
|
|
this.$route.params.examRecordDataId
|
|
|
);
|
|
|
- await this.showSnapResult(fileName);
|
|
|
+ const examRecordDataId = this.$route.params.examRecordDataId;
|
|
|
+ await this.showSnapResult(fileName, examRecordDataId);
|
|
|
} catch (e) {
|
|
|
console.log(e);
|
|
|
this.$Message.error(e.message);
|
|
|
return;
|
|
|
}
|
|
|
},
|
|
|
- async showSnapResult(fileName) {
|
|
|
+ async showSnapResult(fileName, examRecordDataId) {
|
|
|
try {
|
|
|
// 获取抓拍结果
|
|
|
const snapRes = (await this.$http.get(
|
|
|
"/api/ecs_oe_student_face/examCaptureQueue/getExamCaptureResult?fileName=" +
|
|
|
fileName +
|
|
|
"&examRecordDataId=" +
|
|
|
- this.$route.params.examRecordDataId
|
|
|
+ examRecordDataId
|
|
|
)).data;
|
|
|
if (snapRes.isCompleted) {
|
|
|
if (snapRes.isStranger) {
|
|
@@ -181,7 +182,10 @@ export default {
|
|
|
this.$Message.error("请保持正确坐姿");
|
|
|
}
|
|
|
} else {
|
|
|
- setTimeout(this.showSnapResult.bind(this, fileName), 10 * 1000);
|
|
|
+ setTimeout(
|
|
|
+ this.showSnapResult.bind(this, fileName, examRecordDataId),
|
|
|
+ 10 * 1000
|
|
|
+ );
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.log(e);
|