20 changed files with 841 additions and 582 deletions
@ -0,0 +1,225 @@ |
|||
<template> |
|||
<div class="congestion"> |
|||
<div> |
|||
<!-- :style="{ width: dataList.length * 300 }" --> |
|||
<div |
|||
:class=" |
|||
selectIndex == index |
|||
? selectLine < 1 |
|||
? 'item action Abefore' |
|||
: 'item action Aafter' |
|||
: selectIndex + selectLine == index |
|||
? selectLine < 1 |
|||
? 'item action Aafter' |
|||
: 'item action Abefore' |
|||
: 'item' |
|||
" |
|||
v-for="(item, index) in dataList" |
|||
:key="index" |
|||
> |
|||
<i class="after" v-if="index === 0"></i> |
|||
<i |
|||
class="after" |
|||
v-else |
|||
@click="selectItem(index, -1, dataList[index - 1])" |
|||
></i> |
|||
<i class="before" v-if="index === dataList.length - 1"></i> |
|||
<i class="before" v-else @click="selectItem(index, +1, item)"></i> |
|||
|
|||
<span></span> |
|||
<div>{{ item.title }}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
name: "ProgressBar", |
|||
components: {}, |
|||
props: { |
|||
dataList: { |
|||
type: Array, |
|||
default: () => { |
|||
return []; |
|||
}, |
|||
}, |
|||
selectIndex: { |
|||
type: Number, |
|||
default: 1, |
|||
}, |
|||
reset: { |
|||
type: Boolean, |
|||
default: false, |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
// selectIndex: 0, |
|||
selectLine: -1, |
|||
}; |
|||
}, |
|||
created() {}, |
|||
watch: { |
|||
reset: { |
|||
handler(newV) { |
|||
if (newV) { |
|||
this.selectLine = -1; |
|||
} |
|||
}, |
|||
immediate: true, |
|||
}, |
|||
}, |
|||
methods: { |
|||
selectItem(index, num, item) { |
|||
// this.selectIndex = index; |
|||
this.selectLine = num; |
|||
if (item) this.$emit("selectItem", item, index); |
|||
}, |
|||
}, |
|||
mounted() {}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.congestion { |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
> div { |
|||
position: relative; |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
> .item .after { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: -5px; |
|||
width: 45px !important; |
|||
height: 35px !important; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .after::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
> .item .before { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
right: 0px; |
|||
top: -5px; |
|||
width: 45px; |
|||
height: 35px; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .before::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
.item.action .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
.item.action.Aafter .after::after { |
|||
background-color: #c7c7c7 !important; |
|||
} |
|||
|
|||
> .item.action.Aafter .before::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .item.action.Abefore .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .bef::before { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .aft::after { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item.action span { |
|||
background-color: #72fdc9; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item.action span::after { |
|||
border-color: #72fdc9; |
|||
} |
|||
|
|||
> .action div { |
|||
color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item { |
|||
position: relative; |
|||
width: 113px; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
justify-items: center; |
|||
|
|||
> span { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 9px; |
|||
height: 9px; |
|||
background: #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
left: 53px; |
|||
} |
|||
|
|||
> div { |
|||
font-size: 14px; |
|||
position: relative; |
|||
display: inline-flex; |
|||
width: 100%; |
|||
align-items: center; |
|||
justify-content: center; |
|||
top: 5px; |
|||
margin-top: 10px; |
|||
color: #c7c7c7; |
|||
} |
|||
|
|||
> span::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 15px; |
|||
height: 15px; |
|||
border: 1px solid #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
top: -3.5px; |
|||
left: -3px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
@ -1,197 +1,199 @@ |
|||
<template> |
|||
<div class='congestion'> |
|||
<div :style="{ width: dataList.length * 300 }"> |
|||
<div :class="selectIndex == index ? selectLine < 1 ? 'item action Abefore' : 'item action Aafter' : selectIndex + selectLine == index ? selectLine < 1 ? 'item action Aafter' : 'item action Abefore' : 'item'" |
|||
v-for="(item, index) in dataList" :key="index"> |
|||
<i class="after" @click="selectItem(index, -1)"></i> |
|||
<i class="before" @click="selectItem(index, +1)"></i> |
|||
<span></span> |
|||
<div>{{ item.title }}</div> |
|||
</div> |
|||
</div> |
|||
<div class="congestion"> |
|||
<div :style="{ width: dataList.length * 300 }"> |
|||
<div |
|||
:class=" |
|||
selectIndex == index |
|||
? selectLine < 1 |
|||
? 'item action Abefore' |
|||
: 'item action Aafter' |
|||
: selectIndex + selectLine == index |
|||
? selectLine < 1 |
|||
? 'item action Aafter' |
|||
: 'item action Abefore' |
|||
: 'item' |
|||
" |
|||
v-for="(item, index) in dataList" |
|||
:key="index" |
|||
> |
|||
<i class="after" @click="selectItem(index, -1)"></i> |
|||
<i class="before" @click="selectItem(index, +1)"></i> |
|||
<span></span> |
|||
<div>{{ item.title }}</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import { number } from 'echarts'; |
|||
|
|||
|
|||
<script> |
|||
export default { |
|||
name: 'ProgressBar', |
|||
components: { |
|||
name: "ProgressBar", |
|||
components: {}, |
|||
props: { |
|||
dataList: { |
|||
type: Array, |
|||
default: () => { |
|||
return []; |
|||
}, |
|||
}, |
|||
props: { |
|||
dataList: { |
|||
type: Array, |
|||
default: () => { |
|||
return [] |
|||
} |
|||
}, |
|||
}, |
|||
data() { |
|||
return { |
|||
selectIndex: 0, |
|||
selectLine: -1, |
|||
}; |
|||
}, |
|||
|
|||
created() {}, |
|||
methods: { |
|||
selectItem(index, num) { |
|||
this.selectIndex = index; |
|||
this.selectLine = num; |
|||
}, |
|||
data() { |
|||
return { |
|||
selectIndex: 0, |
|||
selectLine: -1, |
|||
} |
|||
}, |
|||
|
|||
created() { |
|||
|
|||
}, |
|||
methods: { |
|||
selectItem(index, num) { |
|||
this.selectIndex = index; |
|||
this.selectLine = num |
|||
} |
|||
}, |
|||
mounted() { |
|||
|
|||
}, |
|||
} |
|||
}, |
|||
mounted() {}, |
|||
}; |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
|
|||
<style lang="scss" scoped> |
|||
.congestion { |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
> div { |
|||
position: relative; |
|||
width: 100%; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
>div { |
|||
> .item .after { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: -5px; |
|||
width: 45px !important; |
|||
height: 35px !important; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .after::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
> .item .before { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
right: 0px; |
|||
top: -5px; |
|||
width: 45px; |
|||
height: 35px; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item .before::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #c7c7c7; |
|||
} |
|||
|
|||
.item.action .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
.item.action.Aafter .after::after { |
|||
background-color: #c7c7c7 !important; |
|||
} |
|||
|
|||
> .item.action.Aafter .before::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .item.action.Abefore .after::after { |
|||
background-color: #72fdc9; |
|||
} |
|||
|
|||
> .bef::before { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .aft::after { |
|||
background-color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item.action span { |
|||
background-color: #72fdc9; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
> .item.action span::after { |
|||
border-color: #72fdc9; |
|||
} |
|||
|
|||
> .action div { |
|||
color: #72fdc9 !important; |
|||
} |
|||
|
|||
> .item { |
|||
position: relative; |
|||
width: 180px; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
justify-items: center; |
|||
|
|||
> span { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 9px; |
|||
height: 9px; |
|||
background: #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
left: 53px; |
|||
} |
|||
|
|||
> div { |
|||
position: relative; |
|||
display: inline-flex; |
|||
width: 100%; |
|||
height: 35px; |
|||
align-items: center; |
|||
justify-content: center; |
|||
top: 5px; |
|||
margin-top: 10px; |
|||
font-size: 14px; |
|||
color: #c7c7c7; |
|||
} |
|||
|
|||
> span::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
flex-direction: row; |
|||
|
|||
>.item .after { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: -5px; |
|||
width: 45px !important; |
|||
height: 35px !important; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
>.item .after::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #C7C7C7; |
|||
} |
|||
|
|||
>.item .before { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
right: 0px; |
|||
top: -5px; |
|||
width: 45px; |
|||
height: 35px; |
|||
background-color: transparent; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
>.item .before::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
left: 0px; |
|||
top: 8px; |
|||
width: 45px !important; |
|||
height: 3px !important; |
|||
background-color: #C7C7C7; |
|||
} |
|||
|
|||
.item.action .after::after { |
|||
background-color: #72FDC9; |
|||
} |
|||
|
|||
.item.action.Aafter .after::after { |
|||
background-color: #C7C7C7 !important; |
|||
} |
|||
|
|||
>.item.action.Aafter .before::after { |
|||
background-color: #72FDC9; |
|||
} |
|||
|
|||
>.item.action.Abefore .after::after { |
|||
background-color: #72FDC9; |
|||
} |
|||
|
|||
>.bef::before { |
|||
background-color: #72FDC9 !important; |
|||
} |
|||
|
|||
>.aft::after { |
|||
background-color: #72FDC9 !important; |
|||
} |
|||
|
|||
>.item.action span { |
|||
background-color: #72FDC9; |
|||
cursor: pointer; |
|||
} |
|||
|
|||
>.item.action span::after { |
|||
border-color: #72FDC9; |
|||
} |
|||
|
|||
>.action div { |
|||
color: #72FDC9 !important; |
|||
} |
|||
|
|||
|
|||
>.item { |
|||
position: relative; |
|||
width: 180px; |
|||
height: 35px; |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
justify-items: center; |
|||
|
|||
|
|||
>span { |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 9px; |
|||
height: 9px; |
|||
background: #C7C7C7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
left: 53px; |
|||
} |
|||
|
|||
>div { |
|||
position: relative; |
|||
display: inline-flex; |
|||
width: 100%; |
|||
align-items: center; |
|||
justify-content: center; |
|||
top: 5px; |
|||
margin-top: 10px; |
|||
font-size: 14px; |
|||
color: #C7C7C7; |
|||
} |
|||
|
|||
>span::after { |
|||
content: ""; |
|||
position: absolute; |
|||
display: inline-flex; |
|||
width: 15px; |
|||
height: 15px; |
|||
border: 1px solid #C7C7C7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
top: -3.5px; |
|||
left: -3px; |
|||
} |
|||
} |
|||
width: 15px; |
|||
height: 15px; |
|||
border: 1px solid #c7c7c7; |
|||
border-radius: 50%; |
|||
opacity: 1; |
|||
top: -3.5px; |
|||
left: -3px; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
</style> |
|||
|
@ -1,148 +1,139 @@ |
|||
<template> |
|||
<div class='TrafficFlowMax'> |
|||
<el-tabs class="footTabs" v-model="activeName" @tab-click="changeTabs"> |
|||
<el-tab-pane label="综合指标分析" name="first"> |
|||
<IndicatorAnalysis /> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="综合指标查询" name="second"> |
|||
<IndicatorQuery /> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import IndicatorAnalysis from './components/IndicatorAnalysis'; |
|||
import IndicatorQuery from './components/IndicatorQuery'; |
|||
<div class="TrafficFlowMax"> |
|||
<el-tabs class="footTabs" v-model="activeName" @tab-click="changeTabs"> |
|||
<el-tab-pane label="综合指标分析" name="first"> |
|||
<IndicatorAnalysis /> |
|||
</el-tab-pane> |
|||
<el-tab-pane label="综合指标查询" name="second"> |
|||
<IndicatorQuery /> |
|||
</el-tab-pane> |
|||
</el-tabs> |
|||
</div> |
|||
</template> |
|||
|
|||
export default { |
|||
name: 'trafficSituation', |
|||
components: { |
|||
IndicatorAnalysis, |
|||
IndicatorQuery |
|||
}, |
|||
data(){ |
|||
return { |
|||
activeName:"first" |
|||
} |
|||
}, |
|||
methods:{ |
|||
changeTabs(){ |
|||
|
|||
} |
|||
} |
|||
|
|||
} |
|||
</script> |
|||
|
|||
<style lang='scss' scoped> |
|||
<script> |
|||
import IndicatorAnalysis from "./components/IndicatorAnalysis"; |
|||
import IndicatorQuery from "./components/IndicatorQuery"; |
|||
|
|||
::v-deep .el-tabs__item{ |
|||
display: inline-flex; |
|||
justify-content: center; |
|||
font-size: 16px; |
|||
font-family: PingFang SC, PingFang SC; |
|||
font-weight: 500; |
|||
color: #FFFFFF; |
|||
min-width:128px; |
|||
position: relative; |
|||
left:10px; |
|||
} |
|||
export default { |
|||
name: "trafficSituation", |
|||
components: { |
|||
IndicatorAnalysis, |
|||
IndicatorQuery, |
|||
}, |
|||
data() { |
|||
return { |
|||
activeName: "first", |
|||
}; |
|||
}, |
|||
methods: { |
|||
changeTabs() {}, |
|||
}, |
|||
}; |
|||
</script> |
|||
|
|||
::v-deep .el-tabs__active-bar { |
|||
min-width:128px; |
|||
} |
|||
<style lang="scss" scoped> |
|||
::v-deep .el-tabs__item { |
|||
display: inline-flex; |
|||
justify-content: center; |
|||
font-size: 16px; |
|||
font-family: PingFang SC, PingFang SC; |
|||
font-weight: 500; |
|||
color: #ffffff; |
|||
min-width: 128px; |
|||
position: relative; |
|||
left: 10px; |
|||
} |
|||
|
|||
::v-deep .el-tabs__nav-wrap::after { |
|||
background-color: #133242; |
|||
opacity: 0.1; |
|||
} |
|||
::v-deep .el-tabs__active-bar { |
|||
min-width: 128px; |
|||
} |
|||
|
|||
::v-deep .el-tabs__header { |
|||
margin:0px !important; |
|||
} |
|||
::v-deep .el-tabs__nav-wrap::after { |
|||
background-color: #133242; |
|||
opacity: 0.1; |
|||
} |
|||
|
|||
.footTabs { |
|||
display: inline; |
|||
width:99%; |
|||
::v-deep .el-tabs__header { |
|||
margin: 0px !important; |
|||
} |
|||
|
|||
} |
|||
.footTabs { |
|||
display: inline; |
|||
width: 99%; |
|||
} |
|||
|
|||
.TrafficFlowMax { |
|||
width: 100%; |
|||
height: 100%; |
|||
position: relative; |
|||
z-index: 6; |
|||
color: white; |
|||
padding: 15px 25px; |
|||
|
|||
.head{ |
|||
width: 98%; |
|||
margin: auto; |
|||
margin-top: 15px; |
|||
.TrafficFlowMax { |
|||
width: 100%; |
|||
height: 100%; |
|||
position: relative; |
|||
z-index: 6; |
|||
color: white; |
|||
padding: 15px 25px; |
|||
|
|||
.head { |
|||
width: 98%; |
|||
margin: auto; |
|||
margin-top: 15px; |
|||
} |
|||
.content { |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 19px; |
|||
> div { |
|||
pointer-events: auto; |
|||
} |
|||
.content { |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 19px; |
|||
>div { |
|||
pointer-events: auto; |
|||
} |
|||
|
|||
.content-l { |
|||
width: calc(50%); |
|||
min-width:460px; |
|||
margin-right:20px; |
|||
|
|||
} |
|||
|
|||
|
|||
.content-m { |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
width: calc(100% / 4 ); |
|||
margin-right:20px; |
|||
.content-l { |
|||
width: calc(50%); |
|||
min-width: 460px; |
|||
margin-right: 20px; |
|||
} |
|||
|
|||
.content-m-t { |
|||
width:100%; |
|||
height:240px; |
|||
margin-bottom: 20px; |
|||
} |
|||
} |
|||
.content-r { |
|||
width: 49.4%; |
|||
.content-m { |
|||
display: inline-flex; |
|||
flex-direction: column; |
|||
width: calc(100% / 4); |
|||
margin-right: 20px; |
|||
|
|||
.content-m-t { |
|||
width: 100%; |
|||
height: 240px; |
|||
margin-bottom: 20px; |
|||
} |
|||
} |
|||
.foot{ |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 8px; |
|||
>div { |
|||
pointer-events: auto; |
|||
} |
|||
.content-r { |
|||
width: 49.4%; |
|||
} |
|||
} |
|||
.foot { |
|||
width: 98%; |
|||
margin: auto; |
|||
display: flex; |
|||
justify-content: space-between; |
|||
flex: 1; |
|||
pointer-events: none; |
|||
margin-top: 8px; |
|||
> div { |
|||
pointer-events: auto; |
|||
} |
|||
|
|||
.foot-w { |
|||
width:100%; |
|||
.foot-w { |
|||
width: 100%; |
|||
} |
|||
|
|||
} |
|||
|
|||
.foot-l { |
|||
width: 726px; |
|||
} |
|||
.foot-m { |
|||
width: 613px; |
|||
} |
|||
.foot-r { |
|||
width: 493px; |
|||
} |
|||
.foot-l { |
|||
width: 726px; |
|||
} |
|||
.foot-m { |
|||
width: 613px; |
|||
} |
|||
.foot-r { |
|||
width: 493px; |
|||
} |
|||
} |
|||
</style> |
|||
|
|||
} |
|||
</style> |
|||
|
Loading…
Reference in new issue