rt-sim-training-client/src/views/newMap/displayNew/menuTrainList.vue
joylink_cuiweidong 06a6087f0c 代码调整
2020-03-31 19:12:30 +08:00

54 lines
1.3 KiB
Vue

<template>
<div class="menuTrainList">
<el-drawer
title=""
:visible.sync="table"
direction="rtl"
size="50%"
>
<el-table :data="trainList" height="100%">
<el-table-column property="groupNumber" label="车组号" width="100" />
<el-table-column property="serviceNumber" label="表号" width="100" />
<el-table-column property="tripNumber" label="车次号" width="100" />
<el-table-column property="right" label="是否上行" width="90" />
</el-table>
</el-drawer>
</div>
</template>
<script>
// import { TrainingMode } from '@/scripts/ConstDic';
export default {
data() {
return {
trainList:[],
table: false
};
},
computed: {
},
watch:{
'$store.state.map.mapViewLoadedCount': function () {
this.trainList = this.$store.state.map.map.trainList;
},
'$store.state.socket.equipmentStatus': function (val) {
// debugger;
this.trainList = this.$store.state.map.map.trainList;
}
},
mounted() {
}
};
</script>
<style lang="scss" scoped>
.menuTrainList{
position: absolute;
right: 0;
top: 15%;
width: 400px;
height: 70%;
border-radius: 10px 0px 0px 10px;
padding: 5px;
background: #fff;
}
</style>