应急调度指挥调整

This commit is contained in:
fan 2023-01-11 14:20:27 +08:00
parent b1fadb3671
commit 082bf8cd65
4 changed files with 13 additions and 9 deletions

View File

@ -2,8 +2,6 @@
<div class="bigScreen"> <div class="bigScreen">
<div v-show="maskOpen" class="bigScreenMask" /> <div v-show="maskOpen" class="bigScreenMask" />
<jlmap-visual ref="jlmapVisual" /> <jlmap-visual ref="jlmapVisual" />
<wh-train-list v-if="prdType=== '10'" ref="whTrainList" />
<voice-command v-if="prdType === '10'" ref="whTrainList" />
<div v-show="disPlay" class="bigScreenBack"> <div v-show="disPlay" class="bigScreenBack">
<el-button-group> <el-button-group>
<el-button type="primary" @click="back">返回</el-button> <el-button type="primary" @click="back">返回</el-button>
@ -19,15 +17,11 @@ import { mapGetters } from 'vuex';
import { creatSubscribe, clearSubscribe, displayTopic} from '@/utils/stomp'; import { creatSubscribe, clearSubscribe, displayTopic} from '@/utils/stomp';
import { getToken } from '@/utils/auth'; import { getToken } from '@/utils/auth';
import { TrainingMode } from '@/scripts/ConstDic'; import { TrainingMode } from '@/scripts/ConstDic';
import WhTrainList from './whTrainList';
import VoiceCommand from './voiceCommand';
export default { export default {
name: 'BigScreen', name: 'BigScreen',
components: { components: {
JlmapVisual, JlmapVisual
WhTrainList,
VoiceCommand
}, },
props: { props: {
widthLeft: { widthLeft: {

View File

@ -1,16 +1,23 @@
<template> <template>
<div> <div style="width: 100%;overflow: hidden;position: relative;">
<station-diagram ref="stationDiagram" @setSelected="setSelected" /> <station-diagram ref="stationDiagram" @setSelected="setSelected" />
<voice-command v-if="project === 'yjddzh'" ref="voiceCommand" />
<wh-train-list v-if="project === 'yjddzh'" ref="whTrainList" />
</div> </div>
</template> </template>
<script> <script>
import StationDiagram from '../stationDiagram/index'; import StationDiagram from '../stationDiagram/index';
import VoiceCommand from '../yjddzh/voiceCommand';
import WhTrainList from '../yjddzh/whTrainList';
import { getSessionStorage } from '@/utils/auth';
import {mapGetters} from 'vuex'; import {mapGetters} from 'vuex';
export default { export default {
name: 'BigScreen', name: 'BigScreen',
components: { components: {
StationDiagram StationDiagram,
VoiceCommand,
WhTrainList
}, },
data() { data() {
return { return {
@ -28,6 +35,9 @@ export default {
}, },
mapDevice() { mapDevice() {
return this.$store.state.map.mapDevice; return this.$store.state.map.mapDevice;
},
project() {
return getSessionStorage('project');
} }
}, },
watch: { watch: {