|
|
@ -1,30 +1,38 @@ |
|
|
|
<template> |
|
|
|
<div class='congestion '> |
|
|
|
<div class="congestion"> |
|
|
|
<WgtTitle :title="'指标变化情况'"></WgtTitle> |
|
|
|
<div class="board "> |
|
|
|
<div class="board"> |
|
|
|
<div class="textStr"> |
|
|
|
<div class="textbar action"> |
|
|
|
<div |
|
|
|
:class="action == 1 ? 'action' : 'textbar'" |
|
|
|
@click="handleClick(1)" |
|
|
|
> |
|
|
|
拥挤度 |
|
|
|
</div> |
|
|
|
<div class="textbar"> |
|
|
|
<div |
|
|
|
:class="action == 2 ? 'action' : 'textbar'" |
|
|
|
@click="handleClick(2)" |
|
|
|
> |
|
|
|
饱和度 |
|
|
|
</div> |
|
|
|
<div class="textbar"> |
|
|
|
<div |
|
|
|
:class="action == 3 ? 'action' : 'textbar'" |
|
|
|
@click="handleClick(3)" |
|
|
|
> |
|
|
|
交通组成特征指数 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="bodySort"> |
|
|
|
<div v-for="(it, index) in tableData" class="sortItem"> |
|
|
|
<span class="barTitle"> |
|
|
|
TOP{{ index + 1 }} |
|
|
|
</span> |
|
|
|
<span class="barTitle"> TOP{{ index + 1 }} </span> |
|
|
|
<div class="text"> |
|
|
|
{{ it.name }} |
|
|
|
</div> |
|
|
|
<div class="lineHight"> |
|
|
|
<div class="inner" :style="{ width: it.num / count * 100 + '%' }"> |
|
|
|
|
|
|
|
</div> |
|
|
|
<div |
|
|
|
class="inner" |
|
|
|
:style="{ width: (it.num / count) * 100 + '%' }" |
|
|
|
></div> |
|
|
|
</div> |
|
|
|
<span class="num"> |
|
|
|
{{ it.num }} |
|
|
@ -34,74 +42,76 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
import WgtTitle from '../../../../../widgets/title' |
|
|
|
import WgtTitle from "../../../../../widgets/title"; |
|
|
|
import * as echarts from "echarts"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'CongestionIndicator', |
|
|
|
name: "CongestionIndicator", |
|
|
|
components: { |
|
|
|
WgtTitle |
|
|
|
WgtTitle, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
action: "1", |
|
|
|
count: 2000, |
|
|
|
tableData: [{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, { |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
tableData: [ |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
{ |
|
|
|
name: "大学城-长清", |
|
|
|
num: 1036, |
|
|
|
}, |
|
|
|
], |
|
|
|
}; |
|
|
|
}, |
|
|
|
|
|
|
|
created() { |
|
|
|
|
|
|
|
}, |
|
|
|
created() {}, |
|
|
|
methods: { |
|
|
|
selectItem(index) { |
|
|
|
this.selectIndex = index; |
|
|
|
}, |
|
|
|
handleClick(value) { |
|
|
|
this.action = value; |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
var myChart = echarts.init(document.getElementById('ChangesIndictors')); |
|
|
|
var myChart = echarts.init(document.getElementById("ChangesIndictors")); |
|
|
|
myChart.setOption(chartsStatistics); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang='scss' scoped> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.showClass { |
|
|
|
color: #00EBC1; |
|
|
|
color: #00ebc1; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-table .cell { |
|
|
@ -110,7 +120,7 @@ export default { |
|
|
|
|
|
|
|
::v-deep .el-table .el-table__header-wrapper th { |
|
|
|
background-color: #064258 !important; |
|
|
|
color: #00D1FF; |
|
|
|
color: #00d1ff; |
|
|
|
border-color: #064258 !important; |
|
|
|
border: 0px !important; |
|
|
|
font-size: 12px !important; |
|
|
@ -129,11 +139,11 @@ export default { |
|
|
|
|
|
|
|
::v-deep .el-table tr:hover td { |
|
|
|
background: #1b2528 !important; |
|
|
|
color: #00D1FF; |
|
|
|
color: #00d1ff; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-table tr:nth-child(odd) td { |
|
|
|
background-color: #13272F; |
|
|
|
background-color: #13272f; |
|
|
|
border: 0px !important; |
|
|
|
} |
|
|
|
|
|
|
@ -175,30 +185,29 @@ export default { |
|
|
|
overflow: auto; |
|
|
|
padding: 5px 10px; |
|
|
|
|
|
|
|
>div:first-child { |
|
|
|
> div:first-child { |
|
|
|
.barTitle { |
|
|
|
background: linear-gradient(180deg, #FF6969 0%, #FFB904 100%); |
|
|
|
background: linear-gradient(180deg, #ff6969 0%, #ffb904 100%); |
|
|
|
} |
|
|
|
|
|
|
|
.lineHight .inner { |
|
|
|
background: linear-gradient(180deg, #FF6969 0%, #FFB904 100%); |
|
|
|
background: linear-gradient(180deg, #ff6969 0%, #ffb904 100%); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
>div { |
|
|
|
> div { |
|
|
|
display: inline-flex; |
|
|
|
width: 95%; |
|
|
|
height: 41px; |
|
|
|
background: #0D517460; |
|
|
|
background: #0d517460; |
|
|
|
border-radius: 0px 0px 0px 0px; |
|
|
|
margin: 5px; |
|
|
|
font-size: 14px; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #ffffff; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
.barTitle { |
|
|
|
position: relative; |
|
|
|
display: inline-flex; |
|
|
@ -207,8 +216,8 @@ export default { |
|
|
|
font-size: 14px; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 500; |
|
|
|
color: #FFFFFF; |
|
|
|
background: linear-gradient(180deg, #0BA7DA 0%, #61D8FF 100%); |
|
|
|
color: #ffffff; |
|
|
|
background: linear-gradient(180deg, #0ba7da 0%, #61d8ff 100%); |
|
|
|
border-radius: 6px 6px 6px 6px; |
|
|
|
opacity: 1; |
|
|
|
justify-content: center; |
|
|
@ -219,15 +228,15 @@ export default { |
|
|
|
.lineHight { |
|
|
|
width: 60%; |
|
|
|
height: 8px; |
|
|
|
background: linear-gradient(180deg, #0BA7DA10 0%, #4FD3FF10 100%); |
|
|
|
background: linear-gradient(180deg, #0ba7da10 0%, #4fd3ff10 100%); |
|
|
|
border-radius: 6px 6px 6px 6px; |
|
|
|
opacity: 1; |
|
|
|
margin: 0 15px; |
|
|
|
|
|
|
|
>.inner { |
|
|
|
> .inner { |
|
|
|
display: inline-flex; |
|
|
|
height: 8px; |
|
|
|
background: linear-gradient(180deg, #0BA7DA 0%, #61D8FF 100%); |
|
|
|
background: linear-gradient(180deg, #0ba7da 0%, #61d8ff 100%); |
|
|
|
border-radius: 6px 6px 6px 6px; |
|
|
|
opacity: 1; |
|
|
|
position: relative; |
|
|
@ -243,18 +252,18 @@ export default { |
|
|
|
height: 45px; |
|
|
|
flex-direction: row; |
|
|
|
|
|
|
|
>div { |
|
|
|
> div { |
|
|
|
display: inline-flex; |
|
|
|
min-width: 80px; |
|
|
|
height: 26px; |
|
|
|
background: linear-gradient(180deg, #005C7950 0%, #009BCC50 100%); |
|
|
|
background: linear-gradient(180deg, #005c7950 0%, #009bcc50 100%); |
|
|
|
border-radius: 2px 2px 2px 2px; |
|
|
|
opacity: 1; |
|
|
|
color: #fff; |
|
|
|
font-size: 12px; |
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
font-weight: 400; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #ffffff; |
|
|
|
justify-content: center; |
|
|
|
align-items: center; |
|
|
|
margin-left: 20px; |
|
|
@ -263,7 +272,7 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
.action { |
|
|
|
background: linear-gradient(180deg, #005C79 0%, #009BCC 100%); |
|
|
|
background: linear-gradient(180deg, #005c79 0%, #009bcc 100%); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -274,4 +283,3 @@ export default { |
|
|
|
width: 100%; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|