|
@ -25,7 +25,7 @@ |
|
|
<div class="box-title"><span>在途车辆统计</span></div> |
|
|
<div class="box-title"><span>在途车辆统计</span></div> |
|
|
<div class="box-content"> |
|
|
<div class="box-content"> |
|
|
<div class="count"> |
|
|
<div class="count"> |
|
|
<div class="charts keep-ratio " ref="carStatisticsEchartBox"></div> |
|
|
<div class="charts keep-ratio" ref="carStatisticsEchartBox"></div> |
|
|
<div class="count-item cars"> |
|
|
<div class="count-item cars"> |
|
|
<span class="icon"></span> |
|
|
<span class="icon"></span> |
|
|
<span class="label">数量:</span> |
|
|
<span class="label">数量:</span> |
|
@ -34,7 +34,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="count"> |
|
|
<div class="count"> |
|
|
<div class="charts keep-ratio " ref="focusStatisticsEchartBox"></div> |
|
|
<div class="charts keep-ratio" ref="focusStatisticsEchartBox"></div> |
|
|
<div class="count-item focus"> |
|
|
<div class="count-item focus"> |
|
|
<span class="icon"></span> |
|
|
<span class="icon"></span> |
|
|
<span class="label">数量:</span> |
|
|
<span class="label">数量:</span> |
|
@ -43,7 +43,7 @@ |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="count"> |
|
|
<div class="count"> |
|
|
<div class="charts keep-ratio " ref="otherStatisticsEchartBox"></div> |
|
|
<div class="charts keep-ratio" ref="otherStatisticsEchartBox"></div> |
|
|
<div class="count-item other"> |
|
|
<div class="count-item other"> |
|
|
<span class="icon"></span> |
|
|
<span class="icon"></span> |
|
|
<span class="label">数量:</span> |
|
|
<span class="label">数量:</span> |
|
@ -132,16 +132,16 @@ export default { |
|
|
mounted() { |
|
|
mounted() { |
|
|
setTimeout(() => { |
|
|
setTimeout(() => { |
|
|
this.$nextTick(() => { |
|
|
this.$nextTick(() => { |
|
|
var myChart = echarts.init(this.$refs.carStatisticsEchartBox); |
|
|
const myChart1 = echarts.init(this.$refs.carStatisticsEchartBox); |
|
|
myChart.setOption(carStatistics); |
|
|
myChart1.setOption(carStatistics); |
|
|
console.log("charts", carStatistics); |
|
|
console.log("charts", carStatistics); |
|
|
|
|
|
|
|
|
var myChart = echarts.init(this.$refs.focusStatisticsEchartBox); |
|
|
const myChart2 = echarts.init(this.$refs.focusStatisticsEchartBox); |
|
|
myChart.setOption(focusStatistics); |
|
|
myChart2.setOption(focusStatistics); |
|
|
console.log("charts", focusStatistics); |
|
|
console.log("charts", focusStatistics); |
|
|
|
|
|
|
|
|
var myChart = echarts.init(this.$refs.otherStatisticsEchartBox); |
|
|
const myChart3 = echarts.init(this.$refs.otherStatisticsEchartBox); |
|
|
myChart.setOption(otherStatistics); |
|
|
myChart3.setOption(otherStatistics); |
|
|
console.log("charts", otherStatistics); |
|
|
console.log("charts", otherStatistics); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|
}); |
|
|