You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.3 KiB
66 lines
1.3 KiB
<template>
|
|
<div class="TrafficFlowMain">
|
|
<el-tabs class="full_tab" v-model="activeName">
|
|
<el-tab-pane label="交通流分析" name="first" class="tab_con">
|
|
<TrafficFlowAnalysis />
|
|
</el-tab-pane>
|
|
<el-tab-pane label="交通流统计" name="second" class="tab_con">
|
|
<TrafficFlowStatistics />
|
|
</el-tab-pane>
|
|
<el-tab-pane label="一类交调站" name="survey" class="tab_con">
|
|
<TrafficSurvey />
|
|
</el-tab-pane>
|
|
</el-tabs>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import TrafficFlowAnalysis from "./analysis/index.vue";
|
|
import TrafficFlowStatistics from "./statistics/index.vue";
|
|
import TrafficSurvey from "./survey/index.vue";
|
|
|
|
export default {
|
|
name: "TrafficFlow",
|
|
components: {
|
|
TrafficFlowAnalysis,
|
|
TrafficFlowStatistics,
|
|
TrafficSurvey
|
|
},
|
|
data() {
|
|
return {
|
|
activeName:'first'
|
|
}
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.TrafficFlowMain {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 8px 20px 20px;
|
|
}
|
|
.full_tab {
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
::v-deep .el-tabs__header {
|
|
margin: 0 0 15px;
|
|
}
|
|
::v-deep .el-tabs__content {
|
|
flex: 1;
|
|
.el-tab-pane {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
.tab_con {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
</style>
|
|
|