|
@@ -80,24 +80,7 @@ Vue.mixin({
|
|
|
const res = await this.$http.get(
|
|
|
"/api/ecs_oe_student/examControl/endExam"
|
|
|
);
|
|
|
- let resAfter;
|
|
|
if (res.status === 200) {
|
|
|
- for (let i = 0; i < 10; i++) {
|
|
|
- await new Promise(resolve => setTimeout(() => resolve(), 3000));
|
|
|
- resAfter = await this.$http.get(
|
|
|
- "/api/ecs_oe_student/examControl/processAfterEndExam?examRecordDataId=" +
|
|
|
- examingRes.examRecordDataId
|
|
|
- );
|
|
|
- console.log(resAfter);
|
|
|
- if (resAfter.data.code === "S-101000") {
|
|
|
- continue;
|
|
|
- } else if (resAfter.data.code === "000000") {
|
|
|
- window._hmt.push(["_trackEvent", "交卷处理延迟次数", i + 1]);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- if (res.status === 200 && resAfter.data.code === "000000") {
|
|
|
this.$router.replace({
|
|
|
path: `/online-exam/exam/${examingRes.examId}/examRecordData/${examingRes.examRecordDataId}/end`,
|
|
|
});
|