13 changed files with 761 additions and 659 deletions
@ -1,76 +1,74 @@ |
|||||
<template> |
<template> |
||||
<div class='congestion'> |
<div class="congestion"> |
||||
<WgtTitle :title="'近一年交通组成特征指数最大值'"></WgtTitle> |
<WgtTitle :title="'近一年交通组成特征指数最大值'"></WgtTitle> |
||||
<div class="board"> |
<div class="board"> |
||||
<div class="charts keep-ratio " id="composeFeatures"></div> |
<div class="charts keep-ratio" id="composeFeatures"></div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
|
import WgtTitle from "../../../../../widgets/title"; |
||||
import WgtTitle from '../../../../../widgets/title' |
import * as echarts from "echarts"; |
||||
import * as echarts from "echarts"; |
import chartsStatistics from "./assets/charts"; |
||||
import chartsStatistics from "./assets/charts"; |
export default { |
||||
export default { |
name: "ComposeFeatures", |
||||
name: 'ComposeFeatures', |
|
||||
components: { |
components: { |
||||
WgtTitle |
WgtTitle, |
||||
}, |
}, |
||||
data() { |
data() { |
||||
return { |
return { |
||||
myChart:null, |
myChart: null, |
||||
} |
}; |
||||
}, |
}, |
||||
|
|
||||
created() { |
created() {}, |
||||
|
|
||||
}, |
|
||||
methods: { |
methods: { |
||||
reiszeChart(){ |
reiszeChart() { |
||||
this.$nextTick(() => { |
this.$nextTick(() => { |
||||
if ( this.myChart ) { |
if (this.myChart) { |
||||
this.myChart.resize(); |
this.myChart.resize(); |
||||
} |
} |
||||
}); |
}); |
||||
} |
|
||||
}, |
}, |
||||
update(){ |
|
||||
|
|
||||
}, |
}, |
||||
|
update() {}, |
||||
mounted() { |
mounted() { |
||||
setTimeout(() => { |
setTimeout(() => { |
||||
this.$nextTick(() => { |
this.$nextTick(() => { |
||||
this.myChart = echarts.init(document.getElementById('composeFeatures')); |
this.myChart = echarts.init(document.getElementById("composeFeatures")); |
||||
this.myChart.setOption(chartsStatistics); |
this.myChart.setOption(chartsStatistics); |
||||
}); |
}); |
||||
}); |
}); |
||||
}, |
}, |
||||
} |
}; |
||||
</script> |
</script> |
||||
|
|
||||
<style lang='scss' scoped> |
<style lang="scss" scoped> |
||||
.congestion { |
.congestion { |
||||
width: 100%; |
width: 100%; |
||||
.board{ |
.board { |
||||
height:150px; |
// height: 150px; |
||||
|
flex: 1; |
||||
width: 100%; |
width: 100%; |
||||
padding: 0px 20px; |
padding: 0px 20px; |
||||
background: linear-gradient(180deg, rgba(6,66,88,0.2) 0%, #064258 100%); |
background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%); |
||||
border-radius: 5px 5px 5px 5px; |
border-radius: 5px 5px 5px 5px; |
||||
opacity: 1; |
opacity: 1; |
||||
border: 1px solid; |
border: 1px solid; |
||||
border-image: linear-gradient(360deg, rgba(55, 231, 255,0.3), rgba(55, 231, 255, 0)) 1 1; |
border-image: linear-gradient( |
||||
|
360deg, |
||||
|
rgba(55, 231, 255, 0.3), |
||||
|
rgba(55, 231, 255, 0) |
||||
|
) |
||||
|
1 1; |
||||
display: flex; |
display: flex; |
||||
justify-content: space-between; |
justify-content: space-between; |
||||
align-items: center; |
align-items: center; |
||||
|
|
||||
} |
|
||||
} |
} |
||||
.charts { |
} |
||||
height:120px; |
.charts { |
||||
|
height: 120px; |
||||
width: 100%; |
width: 100%; |
||||
} |
} |
||||
|
</style> |
||||
</style> |
|
||||
|
|
||||
|
|||||
@ -1,76 +1,74 @@ |
|||||
<template> |
<template> |
||||
<div class='congestion'> |
<div class="congestion"> |
||||
<WgtTitle :title="'近一年拥挤度最大值'"></WgtTitle> |
<WgtTitle :title="'近一年拥挤度最大值'"></WgtTitle> |
||||
<div class="board"> |
<div class="board"> |
||||
<div class="charts keep-ratio " id="Crowding"></div> |
<div class="charts keep-ratio" id="Crowding"></div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
|
import WgtTitle from "../../../../../widgets/title"; |
||||
import WgtTitle from '../../../../../widgets/title' |
import * as echarts from "echarts"; |
||||
import * as echarts from "echarts"; |
import chartsStatistics from "./assets/charts"; |
||||
import chartsStatistics from "./assets/charts"; |
export default { |
||||
export default { |
name: "Crowding", |
||||
name: 'Crowding', |
|
||||
components: { |
components: { |
||||
WgtTitle |
WgtTitle, |
||||
}, |
}, |
||||
data() { |
data() { |
||||
return { |
return { |
||||
myChart:null, |
myChart: null, |
||||
} |
}; |
||||
}, |
}, |
||||
|
|
||||
created() { |
created() {}, |
||||
|
|
||||
}, |
|
||||
methods: { |
methods: { |
||||
reiszeChart(){ |
reiszeChart() { |
||||
this.$nextTick(() => { |
this.$nextTick(() => { |
||||
if ( this.myChart ) { |
if (this.myChart) { |
||||
this.myChart.resize(); |
this.myChart.resize(); |
||||
} |
} |
||||
}); |
}); |
||||
} |
|
||||
}, |
}, |
||||
update(){ |
|
||||
|
|
||||
}, |
}, |
||||
|
update() {}, |
||||
mounted() { |
mounted() { |
||||
setTimeout(() => { |
setTimeout(() => { |
||||
this.$nextTick(() => { |
this.$nextTick(() => { |
||||
this.myChart = echarts.init(document.getElementById('Crowding')); |
this.myChart = echarts.init(document.getElementById("Crowding")); |
||||
this.myChart.setOption(chartsStatistics); |
this.myChart.setOption(chartsStatistics); |
||||
}); |
}); |
||||
}); |
}); |
||||
}, |
}, |
||||
} |
}; |
||||
</script> |
</script> |
||||
|
|
||||
<style lang='scss' scoped> |
<style lang="scss" scoped> |
||||
.congestion { |
.congestion { |
||||
width: 100%; |
width: 100%; |
||||
.board{ |
.board { |
||||
height:150px; |
// height: 150px; |
||||
|
flex: 1; |
||||
width: 100%; |
width: 100%; |
||||
padding: 0px 20px; |
padding: 0px 20px; |
||||
background: linear-gradient(180deg, rgba(6,66,88,0.2) 0%, #064258 100%); |
background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%); |
||||
border-radius: 5px 5px 5px 5px; |
border-radius: 5px 5px 5px 5px; |
||||
opacity: 1; |
opacity: 1; |
||||
border: 1px solid; |
border: 1px solid; |
||||
border-image: linear-gradient(360deg, rgba(55, 231, 255,0.3), rgba(55, 231, 255, 0)) 1 1; |
border-image: linear-gradient( |
||||
|
360deg, |
||||
|
rgba(55, 231, 255, 0.3), |
||||
|
rgba(55, 231, 255, 0) |
||||
|
) |
||||
|
1 1; |
||||
display: flex; |
display: flex; |
||||
justify-content: space-between; |
justify-content: space-between; |
||||
align-items: center; |
align-items: center; |
||||
|
|
||||
} |
|
||||
} |
} |
||||
.charts { |
} |
||||
height:120px; |
.charts { |
||||
|
height: 120px; |
||||
width: 100%; |
width: 100%; |
||||
} |
} |
||||
|
</style> |
||||
</style> |
|
||||
|
|
||||
|
|||||
@ -1,76 +1,76 @@ |
|||||
<template> |
<template> |
||||
<div class='congestion'> |
<div class="congestion"> |
||||
<WgtTitle :title="'近一年饱和度最大值'"></WgtTitle> |
<WgtTitle :title="'近一年饱和度最大值'"></WgtTitle> |
||||
<div class="board"> |
<div class="board"> |
||||
<div class="charts keep-ratio " id="temperatureTrend"></div> |
<div class="charts keep-ratio" id="temperatureTrend"></div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
|
import WgtTitle from "../../../../../widgets/title"; |
||||
import WgtTitle from '../../../../../widgets/title' |
import * as echarts from "echarts"; |
||||
import * as echarts from "echarts"; |
import chartsStatistics from "./assets/charts"; |
||||
import chartsStatistics from "./assets/charts"; |
export default { |
||||
export default { |
name: "SaturationMax", |
||||
name: 'SaturationMax', |
|
||||
components: { |
components: { |
||||
WgtTitle |
WgtTitle, |
||||
}, |
}, |
||||
data() { |
data() { |
||||
return { |
return { |
||||
myChart:null, |
myChart: null, |
||||
} |
}; |
||||
}, |
}, |
||||
|
|
||||
created() { |
created() {}, |
||||
|
|
||||
}, |
|
||||
methods: { |
methods: { |
||||
reiszeChart(){ |
reiszeChart() { |
||||
this.$nextTick(() => { |
this.$nextTick(() => { |
||||
if ( this.myChart ) { |
if (this.myChart) { |
||||
this.myChart.resize(); |
this.myChart.resize(); |
||||
} |
} |
||||
}); |
}); |
||||
} |
|
||||
}, |
}, |
||||
update(){ |
|
||||
|
|
||||
}, |
}, |
||||
|
update() {}, |
||||
mounted() { |
mounted() { |
||||
setTimeout(() => { |
setTimeout(() => { |
||||
this.$nextTick(() => { |
this.$nextTick(() => { |
||||
this.myChart = echarts.init(document.getElementById('temperatureTrend')); |
this.myChart = echarts.init( |
||||
|
document.getElementById("temperatureTrend") |
||||
|
); |
||||
this.myChart.setOption(chartsStatistics); |
this.myChart.setOption(chartsStatistics); |
||||
}); |
}); |
||||
}); |
}); |
||||
}, |
}, |
||||
} |
}; |
||||
</script> |
</script> |
||||
|
|
||||
<style lang='scss' scoped> |
<style lang="scss" scoped> |
||||
.congestion { |
.congestion { |
||||
width: 100%; |
width: 100%; |
||||
.board{ |
.board { |
||||
height:150px; |
// height: 150px; |
||||
|
flex: 1; |
||||
width: 100%; |
width: 100%; |
||||
padding: 0px 20px; |
padding: 0px 20px; |
||||
background: linear-gradient(180deg, rgba(6,66,88,0.2) 0%, #064258 100%); |
background: linear-gradient(180deg, rgba(6, 66, 88, 0.2) 0%, #064258 100%); |
||||
border-radius: 5px 5px 5px 5px; |
border-radius: 5px 5px 5px 5px; |
||||
opacity: 1; |
opacity: 1; |
||||
border: 1px solid; |
border: 1px solid; |
||||
border-image: linear-gradient(360deg, rgba(55, 231, 255,0.3), rgba(55, 231, 255, 0)) 1 1; |
border-image: linear-gradient( |
||||
|
360deg, |
||||
|
rgba(55, 231, 255, 0.3), |
||||
|
rgba(55, 231, 255, 0) |
||||
|
) |
||||
|
1 1; |
||||
display: flex; |
display: flex; |
||||
justify-content: space-between; |
justify-content: space-between; |
||||
align-items: center; |
align-items: center; |
||||
|
|
||||
} |
|
||||
} |
} |
||||
.charts { |
} |
||||
height:120px; |
.charts { |
||||
|
height: 120px; |
||||
width: 100%; |
width: 100%; |
||||
} |
} |
||||
|
</style> |
||||
</style> |
|
||||
|
|
||||
|
|||||
Loading…
Reference in new issue