|
@@ -33,11 +33,12 @@
|
|
<script>
|
|
<script>
|
|
import { mapState as globalMapState } from "vuex";
|
|
import { mapState as globalMapState } from "vuex";
|
|
import { createNamespacedHelpers } from "vuex";
|
|
import { createNamespacedHelpers } from "vuex";
|
|
-const { mapState, mapMutations } = createNamespacedHelpers("examingHomeModule");
|
|
|
|
|
|
+const { mapMutations } = createNamespacedHelpers("examingHomeModule");
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ exam: null,
|
|
afterExamRemark: null,
|
|
afterExamRemark: null,
|
|
showObjectScore: null,
|
|
showObjectScore: null,
|
|
cheatingRemark: null,
|
|
cheatingRemark: null,
|
|
@@ -68,15 +69,15 @@ export default {
|
|
await f();
|
|
await f();
|
|
|
|
|
|
try {
|
|
try {
|
|
- if (!this.exam) {
|
|
|
|
- this.exam = (await this.$http.get(
|
|
|
|
- "/api/ecs_exam_work/exam/" + examId
|
|
|
|
- )).data;
|
|
|
|
- }
|
|
|
|
|
|
+ // if (!this.exam) {
|
|
|
|
+ this.exam = (await this.$http.get(
|
|
|
|
+ "/api/ecs_exam_work/exam/" + examId
|
|
|
|
+ )).data;
|
|
|
|
+ // }
|
|
|
|
|
|
if (this.exam.examType === "PRACTICE") {
|
|
if (this.exam.examType === "PRACTICE") {
|
|
this.$router.replace(
|
|
this.$router.replace(
|
|
- `/online-practice/exam/${examId}/detail?examRecordDataId=${examRecordDataId}`
|
|
|
|
|
|
+ `/online-practice/exam/${examId}/detail?examRecordDataId=${examRecordDataId}&disableGoBack=true`
|
|
);
|
|
);
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -116,8 +117,8 @@ export default {
|
|
});
|
|
});
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...globalMapState(["user"]),
|
|
|
|
- ...mapState(["exam"])
|
|
|
|
|
|
+ ...globalMapState(["user"])
|
|
|
|
+ // ...mapState(["exam"])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
...mapMutations(["updateExamState"])
|
|
...mapMutations(["updateExamState"])
|