diff --git a/src/views/designPlatform/bigScreen.vue b/src/views/designPlatform/bigScreen.vue index 8f375930f..d1b13f87b 100644 --- a/src/views/designPlatform/bigScreen.vue +++ b/src/views/designPlatform/bigScreen.vue @@ -16,6 +16,7 @@ import { clearSimulation } from '@/api/simulation'; import { mapGetters } from 'vuex'; import { creatSubscribe, clearSubscribe, displayTopic} from '@/utils/stomp'; import { getToken } from '@/utils/auth'; +import { TrainingMode } from '@/scripts/ConstDic'; export default { name: 'BigScreen', @@ -95,7 +96,7 @@ export default { if (this.$route.query.group) { loadMapDataById(this.$route.query.mapId, 'simulation'); } else { - this.$store.dispatch('training/changeMode', { mode: null }); + this.$store.dispatch('training/changeMode', { mode: TrainingMode.NORMAL }); loadMapDataById(this.$route.params.mapId, 'preview'); } }, diff --git a/src/views/designPlatform/bigSplitScreen.vue b/src/views/designPlatform/bigSplitScreen.vue index be1540041..0d9bbabd3 100644 --- a/src/views/designPlatform/bigSplitScreen.vue +++ b/src/views/designPlatform/bigSplitScreen.vue @@ -27,6 +27,7 @@ import { mapGetters } from 'vuex'; import { creatSubscribe, clearSubscribe, displayTopic} from '@/utils/stomp'; import { getToken } from '@/utils/auth'; import { getSessionStorage } from '@/utils/auth'; +import { TrainingMode } from '@/scripts/ConstDic'; export default { name: 'MapPreview', @@ -105,7 +106,7 @@ export default { if (this.$route.query.group) { await loadMapDataById(this.$route.query.mapId, 'simulation'); } else { - this.$store.dispatch('training/changeMode', { mode: null }); + this.$store.dispatch('training/changeMode', { mode: TrainingMode.NORMAL }); loadMapDataById(this.$route.params.mapId, 'preview'); } }, diff --git a/src/views/designPlatform/mapPreviewNew.vue b/src/views/designPlatform/mapPreviewNew.vue index e90d53f5a..a565cf9df 100644 --- a/src/views/designPlatform/mapPreviewNew.vue +++ b/src/views/designPlatform/mapPreviewNew.vue @@ -11,6 +11,7 @@ import { EventBus } from '@/scripts/event-bus'; import { DeviceMenu, getDeviceMenuByDeviceType } from '@/scripts/ConstDic'; import PopMenu from '@/components/PopMenu'; import { mapGetters } from 'vuex'; +import { TrainingMode } from '@/scripts/ConstDic'; export default { name: 'MapPreview', @@ -78,7 +79,7 @@ export default { methods: { initLoadData() { // 加载地图数据 if (parseInt(this.mapId)) { - this.$store.dispatch('training/changeMode', { mode: null }); + this.$store.dispatch('training/changeMode', { mode: TrainingMode.NORMAL }); loadMapDataById(this.mapId, 'preview'); } else { this.endViewLoading(); diff --git a/src/views/planMonitor/components/routingoperate/routeMap.vue b/src/views/planMonitor/components/routingoperate/routeMap.vue index 51d720180..f250fd50b 100644 --- a/src/views/planMonitor/components/routingoperate/routeMap.vue +++ b/src/views/planMonitor/components/routingoperate/routeMap.vue @@ -19,6 +19,7 @@ import { loadMapDataById } from '@/utils/loaddata'; import { EventBus } from '@/scripts/event-bus'; import RouteConfig from './routeConfig'; import GernaratePlan from '../menus/gernaratePlanTrain'; +import { TrainingMode } from '@/scripts/ConstDic'; export default { name: 'RouteMap', @@ -119,7 +120,7 @@ export default { }); }, loadInitPage() { - this.$store.dispatch('training/changeMode', { mode: null }); + this.$store.dispatch('training/changeMode', { mode: TrainingMode.NORMAL }); loadMapDataById(this.$route.query.mapId, 'preview'); }, endViewLoading(isSuccess) {