|
@@ -58,7 +58,21 @@ 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-101222") {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (res.status === 200 && resAfter.data.code === "S-101000") {
|
|
|
this.$router.replace({
|
|
|
path: `/online-exam/exam/${examingRes.examId}/examRecordData/${
|
|
|
examingRes.examRecordDataId
|