代码调整

This commit is contained in:
joylink_cuiweidong 2021-09-06 11:24:01 +08:00
parent f40fab2d47
commit ed7bc52ced
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<template> <template>
<div class="menus" :style="{width: width + 'px'}"> <div class="menus" :style="{width: width + 'px'}">
<menu-bar v-show="isShowBar" ref="menuBar" :selected="selected" /> <menu-bar v-show="isShowBar" ref="menuBar" :selected="selected" />
<menu-deplot-button ref="menuDeplotButton" />
<menu-station-stand ref="menuStationStand" :selected="selected" /> <menu-station-stand ref="menuStationStand" :selected="selected" />
<menu-switch ref="menuSwitch" :selected="selected" /> <menu-switch ref="menuSwitch" :selected="selected" />
<menu-signal ref="menuSignal" :selected="selected" /> <menu-signal ref="menuSignal" :selected="selected" />
@ -15,6 +16,7 @@
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import MenuDeplotButton from './menuDeplotButton';
import MenuSignal from './menuSignal'; import MenuSignal from './menuSignal';
import MenuStationStand from './menuStationStand'; import MenuStationStand from './menuStationStand';
import MenuSwitch from './menuSwitch'; import MenuSwitch from './menuSwitch';
@ -30,6 +32,7 @@ export default {
name: 'Menus', name: 'Menus',
components: { components: {
MenuBar, MenuBar,
MenuDeplotButton,
MenuSignal, MenuSignal,
MenuSwitch, MenuSwitch,
MenuSection, MenuSection,

View File

@ -24,7 +24,7 @@ export default {
}, },
computed: { computed: {
isShowBtn() { isShowBtn() {
return this.$store.state.training.prdType == '09'; return this.$store.state.training.prdType == '05';
} }
}, },
beforeDestroy() { beforeDestroy() {