36 lines
624 B
Vue
36 lines
624 B
Vue
<template>
|
|
<div v-if="delayShow">
|
|
<div v-for="item in stationList">
|
|
<delay-info v-if="item.delayInfo" :delay-info-list="item.delayInfo" position="item.points" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import DelayInfo from './delayInfo';
|
|
|
|
export default {
|
|
name: 'DelayBox',
|
|
components: {
|
|
DelayInfo
|
|
},
|
|
data() {
|
|
return {
|
|
delayShow: false,
|
|
stationList: []
|
|
};
|
|
},
|
|
watch: {
|
|
'$store.state.map.stationList': function(val) {
|
|
this.stationList = val;
|
|
}
|
|
},
|
|
methods: {
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style scoped>
|
|
|
|
</style>
|