代码调整

This commit is contained in:
joylink_cuiweidong 2022-09-13 17:56:59 +08:00
parent 6fc5bd1441
commit af30f5d08c

View File

@ -82,7 +82,8 @@
import { mapGetters } from 'vuex';
import { timeFormat } from '@/utils/date';
import { refreshExamList } from '@/api/management/userexam';
import { getTrainingDetailNew } from '@/api/jmap/training';
// import { getTrainingDetailNew } from '@/api/jmap/training';
import { loadTrainingInSimulation } from '@/api/jmap/training';
export default {
name: 'TipExamList',
@ -137,6 +138,9 @@ export default {
},
isLast() {
return this.examIndex == this.trainingList.length - 1;
},
group() {
return this.$route.query.group;
}
},
watch: {
@ -166,7 +170,8 @@ export default {
}
});
if (obj) {
getTrainingDetailNew(obj.trainingId).then(resp => {
loadTrainingInSimulation(this.group, obj.trainingId).then(resp => {
// getTrainingDetailNew(obj.trainingId).then(resp => {
this.courseModel = {
id: resp.data.id,
name: resp.data.name,