车辆段工作站调整

This commit is contained in:
fan 2023-01-09 15:14:46 +08:00
parent 40ce6a6a24
commit d91fb2d8ac

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="menus" :style="{width: width + 'px'}"> <div class="menus" :style="{width: width + 'px'}">
<menu-bar ref="menuBar" :selected="selected" /> <menu-bar v-if="!noShowBar" ref="menuBar" :selected="selected" />
<menu-deplot-button ref="menuDeplotButton" /> <menu-deplot-button ref="menuDeplotButton" />
<menu-station-stand ref="menuStationStand" :selected="selected" :work="'localWork'" /> <menu-station-stand ref="menuStationStand" :selected="selected" :work="'localWork'" />
<menu-switch ref="menuSwitch" :selected="selected" :work="'localWork'" /> <menu-switch ref="menuSwitch" :selected="selected" :work="'localWork'" />
@ -54,7 +54,10 @@ export default {
computed: { computed: {
...mapGetters('config', [ ...mapGetters('config', [
'width' 'width'
]) ]),
noShowBar() {
return this.$store.state.training.roles === 'DEPOT_DISPATCHER' || this.$store.state.training.roles === 'SIGNAL_BUILDING';
}
}, },
watch: {}, watch: {},
mounted() { mounted() {