|
|
@ -6,7 +6,9 @@ |
|
|
|
<div class="checked">路段车流量Top10</div> |
|
|
|
<div>断面交通量Top10</div> |
|
|
|
</div> --> |
|
|
|
<div class="charts keep-ratio" id="situationEchartBox"></div> |
|
|
|
<Empty v-if="!dataList || dataList.length <= 0" text="暂无数据..."></Empty> |
|
|
|
<div v-else class="charts keep-ratio" id="situationEchartBox"></div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
@ -23,7 +25,9 @@ export default { |
|
|
|
WgtTitle, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return {}; |
|
|
|
return { |
|
|
|
dataList: [] |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
mounted() { |
|
|
@ -40,51 +44,6 @@ export default { |
|
|
|
|
|
|
|
let texts = []; |
|
|
|
let datas = []; |
|
|
|
//默认显示数值 |
|
|
|
if (data.length <= 0) { |
|
|
|
data = [ |
|
|
|
{ |
|
|
|
sectionName: "华山北枢纽-济南虚", |
|
|
|
number: 32774, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "东客站虚-华山北枢纽", |
|
|
|
number: 30067, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "小许家枢纽-东客站虚", |
|
|
|
number: 30057, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "临沂枣园枢纽-临沂虚", |
|
|
|
number: 28774, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "华山北枢纽-济南虚", |
|
|
|
number: 26021, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "华山北枢纽-济南虚", |
|
|
|
number: 24061, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "华山北枢纽-济南虚", |
|
|
|
number: 20150, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "华山北枢纽-济南虚", |
|
|
|
number: 20140, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "华山北枢纽-济南虚", |
|
|
|
number: 20050, |
|
|
|
}, |
|
|
|
{ |
|
|
|
sectionName: "华山北枢纽-济南虚", |
|
|
|
number: 20010, |
|
|
|
}, |
|
|
|
]; |
|
|
|
} |
|
|
|
data.forEach((it) => { |
|
|
|
texts.push(it.sectionName); |
|
|
|
datas.push(it.number); |
|
|
@ -99,7 +58,7 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
created() { }, |
|
|
|
methods: {}, |
|
|
|
}; |
|
|
|
</script> |
|
|
@ -116,12 +75,9 @@ export default { |
|
|
|
border-radius: 5px 5px 5px 5px; |
|
|
|
opacity: 1; |
|
|
|
border: 1px solid; |
|
|
|
border-image: linear-gradient( |
|
|
|
360deg, |
|
|
|
border-image: linear-gradient(360deg, |
|
|
|
rgba(55, 231, 255, 0.3), |
|
|
|
rgba(55, 231, 255, 0) |
|
|
|
) |
|
|
|
1 1; |
|
|
|
rgba(55, 231, 255, 0)) 1 1; |
|
|
|
display: flex; |
|
|
|
justify-content: flex-start; |
|
|
|
align-items: center; |
|
|
|