|
@@ -67,47 +67,32 @@ export default {
|
|
|
`/BEFORE_EXAM_REMARK`
|
|
|
);
|
|
|
this.beforeExamRemark = exam.data || "";
|
|
|
- try {
|
|
|
- // await this.$http.get("/api/ecs_oe_student/examControl/endExam");
|
|
|
- const res = await this.$http.get(
|
|
|
- "/api/ecs_oe_student/examControl/startExam?examStudentId=" +
|
|
|
- this.$route.query.examStudentId
|
|
|
- );
|
|
|
- // var res = {
|
|
|
- // data: {
|
|
|
- // examRecordDataId: 7,
|
|
|
- // courseCode: "W00001",
|
|
|
- // courseName: "英语",
|
|
|
- // studentCode: "20180613",
|
|
|
- // studentName: "王章军",
|
|
|
- // duration: 120,
|
|
|
- // faceLivenessMinute: null
|
|
|
- // }
|
|
|
- // };
|
|
|
- if (res.status !== 200) {
|
|
|
- return;
|
|
|
- }
|
|
|
- this.startInfo = res.data;
|
|
|
- this.examRecordDataId = res.data.examRecordDataId;
|
|
|
- // this.startInfo = {
|
|
|
- // id: 101436,
|
|
|
- // courseName: "计算机应用基础",
|
|
|
- // studentCode: "20180613",
|
|
|
- // studentName: "王章军",
|
|
|
- // specialtyLevel: "ALL",
|
|
|
- // paperMins: 60,
|
|
|
- // invigilatorOperation: 0,
|
|
|
- // retakeTypeId: null,
|
|
|
- // retakeDetail: null,
|
|
|
- // faceVerifyMinute: null
|
|
|
- // };
|
|
|
- // this.examRcordId = this.startInfo.id;
|
|
|
- } catch (error) {
|
|
|
+ // await this.$http.get("/api/ecs_oe_student/examControl/endExam");
|
|
|
+ const res = await this.$http.get(
|
|
|
+ "/api/ecs_oe_student/examControl/startExam?examStudentId=" +
|
|
|
+ this.$route.query.examStudentId
|
|
|
+ );
|
|
|
+ if (res.status !== 200) {
|
|
|
console.log(error);
|
|
|
this.$Message.error(error.message);
|
|
|
this.$router.back();
|
|
|
return;
|
|
|
}
|
|
|
+ this.startInfo = res.data;
|
|
|
+ this.examRecordDataId = res.data.examRecordDataId;
|
|
|
+ // this.startInfo = {
|
|
|
+ // id: 101436,
|
|
|
+ // courseName: "计算机应用基础",
|
|
|
+ // studentCode: "20180613",
|
|
|
+ // studentName: "王章军",
|
|
|
+ // specialtyLevel: "ALL",
|
|
|
+ // paperMins: 60,
|
|
|
+ // invigilatorOperation: 0,
|
|
|
+ // retakeTypeId: null,
|
|
|
+ // retakeDetail: null,
|
|
|
+ // faceVerifyMinute: null
|
|
|
+ // };
|
|
|
+ // this.examRcordId = this.startInfo.id;
|
|
|
const paperStruct = await this.$http.get(
|
|
|
"/api/ecs_oe_student/examRecordPaperStruct/getExamRecordPaperStruct?examRecordDataId=" +
|
|
|
this.examRecordDataId
|