调整考试提交返回再次进入时未获取到mapId的问题&&题目框自动收取的问题

This commit is contained in:
fan 2019-12-31 16:57:35 +08:00
parent ef1f301292
commit ce5c87608a
7 changed files with 9 additions and 15 deletions

View File

@ -139,7 +139,7 @@ export default {
}).catch(error => {
// 50009y
if (error.code === 500009) {
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: {subSystem: this.$route.query.subSystem} });
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: { subSystem: this.$route.query.subSystem, mapId:this.$route.query.mapId } });
} else {
this.$messageBox(this.$t('display.exam.refreshListError'));
}

View File

@ -93,7 +93,7 @@ export default {
name: '',
remarks: ''
},
isShrink: false,
isShrink: true,
examName: '',
courseModel: {
id: '',
@ -197,13 +197,12 @@ export default {
}).catch(error => {
// 50009y
if (error.code === 500009) {
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: { subSystem: this.$route.query.subSystem } });
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: { subSystem: this.$route.query.subSystem, mapId:this.$route.query.mapId } });
} else {
this.$messageBox(this.$t('display.exam.refreshListError'));
}
});
this.shrink();
},
scanCommit() {
this.clearScanCommit();
@ -281,7 +280,7 @@ export default {
submit() {
this.$store.dispatch('exam/over').then(() => {
this.$store.dispatch('trainingList/clearTrainingList');
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.query.userExamId}`, query: {subSystem: this.$route.query.subSystem} });
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.query.userExamId}`, query: { subSystem: this.$route.query.subSystem, mapId:this.$route.query.mapId } });
});
},
shrink() {

View File

@ -117,8 +117,6 @@ export default {
this.$message.error(this.$t('display.training.getCourseInformationFail') + ':' + error.message);
});
}
this.shrink();
},
jump(obj) {
const query = {

View File

@ -108,7 +108,7 @@ export default {
},
back() {
const examId = this.resultModel.examId;
this.$router.push({path: `${UrlConfig.trainingPlatform.examDetail}/${examId}`, query: { subSystem: this.$route.query.subSystem }});
this.$router.push({path: `${UrlConfig.trainingPlatform.examDetail}/${examId}`, query: { subSystem: this.$route.query.subSystem, mapId: this.$route.query.mapId }});
}
}
};

View File

@ -139,7 +139,7 @@ export default {
}).catch(error => {
// 50009y
if (error.code === 500009) {
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: {subSystem: this.$route.query.subSystem} });
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: { subSystem: this.$route.query.subSystem, mapId:this.$route.query.mapId } });
} else {
this.$messageBox(this.$t('display.exam.refreshListError'));
}

View File

@ -93,7 +93,7 @@ export default {
name: '',
remarks: ''
},
isShrink: false,
isShrink: true,
examName: '',
courseModel: {
id: '',
@ -197,13 +197,12 @@ export default {
}).catch(error => {
// 50009y
if (error.code === 500009) {
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: { subSystem: this.$route.query.subSystem } });
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.params.userExamId}`, query: { subSystem: this.$route.query.subSystem, mapId:this.$route.query.mapId } });
} else {
this.$messageBox(this.$t('display.exam.refreshListError'));
}
});
this.shrink();
},
scanCommit() {
this.clearScanCommit();
@ -281,7 +280,7 @@ export default {
submit() {
this.$store.dispatch('exam/over').then(() => {
this.$store.dispatch('trainingList/clearTrainingList');
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.query.userExamId}`, query: {subSystem: this.$route.query.subSystem} });
this.$router.replace({ path: `/trainingPlatform/result/${this.$route.query.userExamId}`, query: { subSystem: this.$route.query.subSystem, mapId:this.$route.query.mapId } });
});
},
shrink() {

View File

@ -117,8 +117,6 @@ export default {
this.$message.error(this.$t('display.training.getCourseInformationFail') + ':' + error.message);
});
}
this.shrink();
},
jump(obj) {
const query = {