|
@@ -47,6 +47,7 @@ export default {
|
|
},
|
|
},
|
|
async mounted() {
|
|
async mounted() {
|
|
const examRecordDataId = this.$route.params.examRecordDataId;
|
|
const examRecordDataId = this.$route.params.examRecordDataId;
|
|
|
|
+ const examId = this.$route.params.examId;
|
|
const f = async () => {
|
|
const f = async () => {
|
|
try {
|
|
try {
|
|
this.getResultTimes = this.getResultTimes + 1;
|
|
this.getResultTimes = this.getResultTimes + 1;
|
|
@@ -69,19 +70,25 @@ export default {
|
|
try {
|
|
try {
|
|
if (!this.exam) {
|
|
if (!this.exam) {
|
|
this.exam = (await this.$http.get(
|
|
this.exam = (await this.$http.get(
|
|
- "/api/ecs_exam_work/exam/" + this.$route.params.examId
|
|
|
|
|
|
+ "/api/ecs_exam_work/exam/" + examId
|
|
)).data;
|
|
)).data;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (this.exam.examType === "PRACTICE") {
|
|
|
|
+ this.$router.replace(
|
|
|
|
+ `/online-practice/exam/${examId}/detail?examRecordDataId=${examRecordDataId}`
|
|
|
|
+ );
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
const afterExamRemark = await this.$http.get(
|
|
const afterExamRemark = await this.$http.get(
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
- this.$route.params.examId +
|
|
|
|
|
|
+ examId +
|
|
`/AFTER_EXAM_REMARK`
|
|
`/AFTER_EXAM_REMARK`
|
|
);
|
|
);
|
|
this.afterExamRemark = afterExamRemark.data || "";
|
|
this.afterExamRemark = afterExamRemark.data || "";
|
|
const showObjectScore = await this.$http.get(
|
|
const showObjectScore = await this.$http.get(
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
- this.$route.params.examId +
|
|
|
|
|
|
+ examId +
|
|
`/IS_OBJ_SCORE_VIEW`
|
|
`/IS_OBJ_SCORE_VIEW`
|
|
);
|
|
);
|
|
this.showObjectScore = showObjectScore.data || false;
|
|
this.showObjectScore = showObjectScore.data || false;
|
|
@@ -89,7 +96,7 @@ export default {
|
|
if (this.examResult.isWarn) {
|
|
if (this.examResult.isWarn) {
|
|
const cheatingRemark = await this.$http.get(
|
|
const cheatingRemark = await this.$http.get(
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
"/api/ecs_exam_work/exam/examOrgProperty/" +
|
|
- this.$route.params.examId +
|
|
|
|
|
|
+ examId +
|
|
`/CHEATING_REMARK`
|
|
`/CHEATING_REMARK`
|
|
);
|
|
);
|
|
this.cheatingRemark = cheatingRemark.data || "";
|
|
this.cheatingRemark = cheatingRemark.data || "";
|