教学系统 实训代码调整
This commit is contained in:
parent
b99f0d7551
commit
e355191291
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getPublishLessonTree } from '@/api/jmap/lesson';
|
import { getPublishLessonTree } from '@/api/jmap/lesson';
|
||||||
import { trainingNotifyNew } from '@/api/simulation';
|
// import { trainingNotifyNew } from '@/api/simulation';
|
||||||
import { launchFullscreen } from '@/utils/screen';
|
import { launchFullscreen } from '@/utils/screen';
|
||||||
import { UrlConfig } from '@/scripts/ConstDic';
|
import { UrlConfig } from '@/scripts/ConstDic';
|
||||||
export default {
|
export default {
|
||||||
@ -92,16 +92,16 @@ export default {
|
|||||||
if (obj && obj.type === 'Training') {
|
if (obj && obj.type === 'Training') {
|
||||||
if (obj.valid) {
|
if (obj.valid) {
|
||||||
this.disabled = true;
|
this.disabled = true;
|
||||||
trainingNotifyNew({ trainingId: obj.id }).then(resp => {
|
// trainingNotifyNew({ trainingId: obj.id }).then(resp => {
|
||||||
const query = {
|
const query = {
|
||||||
group: resp.data, trainingId: obj.id, lessonId: this.$route.query.lessonId, mapId: this.$route.query.mapId, lineCode:this.$route.query.lineCode, noPreLogout: this.$route.query.noPreLogout
|
group: this.$route.query.group, trainingId: obj.id, lessonId: this.$route.query.lessonId, mapId: this.$route.query.mapId, lineCode:this.$route.query.lineCode, noPreLogout: this.$route.query.noPreLogout
|
||||||
};
|
};
|
||||||
this.$router.replace({ path: `${UrlConfig.displayNew}/teach`, query: query });
|
this.$router.replace({ path: `${UrlConfig.displayNew}/teach`, query: query });
|
||||||
launchFullscreen();
|
launchFullscreen();
|
||||||
}).catch(error => {
|
// }).catch(error => {
|
||||||
this.$messageBox(`${this.$t('tip.createSimulationFaild')} : ${error.message}`);
|
// this.$messageBox(`${this.$t('tip.createSimulationFaild')} : ${error.message}`);
|
||||||
this.disabled = false;
|
// this.disabled = false;
|
||||||
});
|
// });
|
||||||
} else {
|
} else {
|
||||||
this.$confirm(this.$t('tip.accessCourseNo'), this.$t('tip.hint'), {
|
this.$confirm(this.$t('tip.accessCourseNo'), this.$t('tip.hint'), {
|
||||||
confirmButtonText: this.$t('tip.confirm'),
|
confirmButtonText: this.$t('tip.confirm'),
|
||||||
|
@ -152,6 +152,10 @@ export default {
|
|||||||
this.$store.dispatch('training/reset');
|
this.$store.dispatch('training/reset');
|
||||||
this.$store.dispatch('training/emitTipFresh');
|
this.$store.dispatch('training/emitTipFresh');
|
||||||
this.$store.dispatch('menuOperation/setButtonOperation', null);
|
this.$store.dispatch('menuOperation/setButtonOperation', null);
|
||||||
|
this.$store.dispatch('training/setStopCountTime');
|
||||||
|
this.$store.dispatch('training/setScore', 0);
|
||||||
|
this.$store.dispatch('training/setTrainingStart', false);
|
||||||
|
|
||||||
this.isDisable = false;
|
this.isDisable = false;
|
||||||
},
|
},
|
||||||
overallTranslation(flag) {
|
overallTranslation(flag) {
|
||||||
|
Loading…
Reference in New Issue
Block a user