feat:完善功能
This commit is contained in:
@@ -1,116 +1,65 @@
|
||||
<template>
|
||||
<div class="traffic-box-3">
|
||||
<!-- 1 -->
|
||||
<div class="content-1">
|
||||
<div class="tp-title">
|
||||
<div class="box-1">
|
||||
<img class="icon-xl" src="@/assets/images/work-icon-xl-1.png" alt="" />
|
||||
<div class="xl-title">施家梁子大桥</div>
|
||||
<div class="tp-item">3号摄像机</div>
|
||||
<div class="tp-item item-bg-2">3号点位</div>
|
||||
<div class="box-3">
|
||||
<div class="item" v-for="(item, index) in 2" :key="index">
|
||||
<div class="header">
|
||||
<div class="header-left">
|
||||
<img src="@/assets/images/work-icon-xl-1.png" />
|
||||
<div class="header-left__title">施家梁子大桥</div>
|
||||
<div class="header-left__camera">3号摄像机</div>
|
||||
<div class="header-left__point">3号点位</div>
|
||||
</div>
|
||||
<div class="rt-text">严重拥堵</div>
|
||||
<div class="header-status">严重拥堵</div>
|
||||
</div>
|
||||
<div class="title-num">
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />路段长度 </div>
|
||||
<div class="item-num"
|
||||
><span>
|
||||
<countup endVal="88895" />
|
||||
</span>
|
||||
<div class="statistics">
|
||||
<div class="statistics-item">
|
||||
<div class="statistics-item__label">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />路段长度
|
||||
</div>
|
||||
<div class="statistics-item__value">
|
||||
<countup end-val="88895" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />平均车速 </div>
|
||||
<div class="item-num"
|
||||
><span> <countup endVal="88895" /> </span
|
||||
></div>
|
||||
<div class="statistics-item">
|
||||
<div class="statistics-item__label">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />平均车速
|
||||
</div>
|
||||
<div class="statistics-item__value">
|
||||
<countup end-val="88895" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />拥堵距离 </div>
|
||||
<div class="item-num"
|
||||
><span> <countup endVal="88895" /> </span
|
||||
></div>
|
||||
<div class="statistics-item">
|
||||
<div class="statistics-item__label">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />拥堵距离
|
||||
</div>
|
||||
<div class="statistics-item__value">
|
||||
<countup end-val="88895" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />拥堵次数 </div>
|
||||
<div class="item-num"
|
||||
><span> <countup endVal="88895" /> </span
|
||||
></div>
|
||||
<div class="statistics-item">
|
||||
<div class="statistics-item__label">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />拥堵次数
|
||||
</div>
|
||||
<div class="statistics-item__value">
|
||||
<countup end-val="88895" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex">
|
||||
<div class="statistics-item">
|
||||
<div class="statistics-item__label">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />拥堵开始时间
|
||||
</div>
|
||||
<div class="item-num"><span>12:00:00</span></div>
|
||||
<div class="statistics-item__value">
|
||||
<countup end-val="88895" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex">
|
||||
<div class="statistics-item">
|
||||
<div class="statistics-item__label">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />拥堵持续时长
|
||||
</div>
|
||||
<div class="item-num"><span>1h30S</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- chart -->
|
||||
<div class="chart-item">
|
||||
<div class="title-3"><span>拥堵频次占比</span></div>
|
||||
<div class="chart-box">
|
||||
<v-chart class="chart" :option="option1" autoresize />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 2 -->
|
||||
<div class="content-1 content-2">
|
||||
<div class="tp-title">
|
||||
<div class="box-1">
|
||||
<img class="icon-xl" src="@/assets/images/work-icon-xl-1.png" alt="" />
|
||||
<div class="xl-title">施家梁子大桥</div>
|
||||
<div class="tp-item">3号摄像机</div>
|
||||
<div class="tp-item item-bg-2">3号点位</div>
|
||||
</div>
|
||||
<div class="rt-text rt-text-2">常规拥堵</div>
|
||||
</div>
|
||||
<div class="title-num">
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />路段长度 </div>
|
||||
<div class="item-num"
|
||||
><span>
|
||||
<countup endVal="88895" />
|
||||
</span>
|
||||
<div class="statistics-item__value">
|
||||
<countup end-val="88895" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />平均车速 </div>
|
||||
<div class="item-num"
|
||||
><span> <countup endVal="88895" /> </span
|
||||
></div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />拥堵距离 </div>
|
||||
<div class="item-num"
|
||||
><span> <countup endVal="88895" /> </span
|
||||
></div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex"> <img src="@/assets/images/t-icon-1.png" alt="" />拥堵次数 </div>
|
||||
<div class="item-num"
|
||||
><span> <countup endVal="88895" /> </span
|
||||
></div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />拥堵开始时间
|
||||
</div>
|
||||
<div class="item-num"><span>12:00:00</span></div>
|
||||
</div>
|
||||
<div class="item-box">
|
||||
<div class="item-t flex">
|
||||
<img src="@/assets/images/t-icon-1.png" alt="" />拥堵持续时长
|
||||
</div>
|
||||
<div class="item-num"><span>1h30S</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- chart -->
|
||||
<div class="chart-item">
|
||||
<div class="title-3"><span>拥堵频次占比</span></div>
|
||||
<div class="chart-box">
|
||||
@@ -285,19 +234,82 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.traffic-box-3 {
|
||||
.box-3 {
|
||||
width: vw(813);
|
||||
padding: 0 vw(8);
|
||||
margin-top: vh(120);
|
||||
width: vw(818);
|
||||
height: vh(480);
|
||||
padding: vw(8);
|
||||
position: relative;
|
||||
z-index: 9;
|
||||
background: linear-gradient(330deg, #0b2f64 0%, #062b57 100%);
|
||||
|
||||
.content-2 {
|
||||
margin-top: vh(20);
|
||||
}
|
||||
.content-1 {
|
||||
.item {
|
||||
margin-bottom: vh(10);
|
||||
background-image: url('@/assets/images/bg-2.png');
|
||||
background-size: 100% 100%;
|
||||
.header {
|
||||
height: vh(72);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
&-left {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
> img {
|
||||
width: vw(30);
|
||||
height: auto;
|
||||
margin-right: vw(15);
|
||||
}
|
||||
}
|
||||
&-left__title {
|
||||
margin-right: vw(20);
|
||||
font-size: vw(28);
|
||||
font-weight: bold;
|
||||
color: transparent;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-image: linear-gradient(to bottom, #ffffff 0%, #87c9ff 100%);
|
||||
}
|
||||
&-left__camera {
|
||||
width: vw(120);
|
||||
height: vw(72);
|
||||
background-image: url('/src/assets/images/t-a-1.png');
|
||||
background-size: 100% 100%;
|
||||
font-weight: 600;
|
||||
font-size: vw(15);
|
||||
color: #ffffff;
|
||||
padding-left: vw(42);
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0 vw(20);
|
||||
}
|
||||
&-left__point {
|
||||
margin: 0 vw(20);
|
||||
width: vw(120);
|
||||
height: vw(72);
|
||||
font-weight: 600;
|
||||
font-size: vw(15);
|
||||
color: #ffffff;
|
||||
padding-left: vw(42);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-image: url('/src/assets/images/t-a-2.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
&-status {
|
||||
width: vw(120);
|
||||
height: vw(40);
|
||||
font-weight: 400;
|
||||
font-size: vw(14);
|
||||
color: #ffffff;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-left: vw(40);
|
||||
background-image: url('/src/assets/images/t-b-1.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.chart-item {
|
||||
margin-top: vh(10);
|
||||
height: vh(293);
|
||||
@@ -337,28 +349,36 @@
|
||||
}
|
||||
}
|
||||
|
||||
.title-num {
|
||||
.statistics {
|
||||
height: vh(90);
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
padding: vw(20);
|
||||
background: radial-gradient(70% at 99% 50%, #0a4190 0%, rgba(0, 77, 136, 0.6) 100%);
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
border: 1px solid;
|
||||
border-image: linear-gradient(180deg, rgba(0, 150, 255, 1), rgba(0, 90, 153, 0)) 1 1;
|
||||
align-items: center;
|
||||
justify-content: space-evenly;
|
||||
background-image: url('@/assets/images/bg-3.png');
|
||||
background-size: 100% 100%;
|
||||
|
||||
&-item__label {
|
||||
font-weight: 400;
|
||||
font-size: vw(14);
|
||||
color: #fff;
|
||||
margin-bottom: vh(10);
|
||||
}
|
||||
&-item__value {
|
||||
padding-left: vw(15);
|
||||
height: vh(30);
|
||||
font-weight: bold;
|
||||
font-size: vw(24);
|
||||
color: #02f9fa;
|
||||
background-image: url('@/assets/images/t-box-title-bg-1.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.item-box {
|
||||
flex: 1;
|
||||
|
||||
.item-t {
|
||||
display: flex;
|
||||
font-weight: 400;
|
||||
font-size: vw(14);
|
||||
color: rgba(255, 255, 255, 0.8);
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
margin-bottom: vh(20);
|
||||
|
||||
img {
|
||||
margin-right: vw(5);
|
||||
width: vw(8);
|
||||
@@ -389,74 +409,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.tp-title {
|
||||
height: vh(72);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.box-1 {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.icon-xl {
|
||||
width: vw(30);
|
||||
height: vh(22);
|
||||
margin-right: vw(15);
|
||||
}
|
||||
|
||||
.xl-title {
|
||||
font-size: vw(28);
|
||||
font-weight: bold;
|
||||
color: transparent;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
background-image: linear-gradient(to bottom, #ffffff 0%, #87c9ff 100%);
|
||||
margin-right: vw(20);
|
||||
}
|
||||
|
||||
.tp-item {
|
||||
width: vw(120);
|
||||
height: vw(72);
|
||||
background-image: url('/src/assets/images/t-a-1.png');
|
||||
background-size: 100% 100%;
|
||||
font-weight: 600;
|
||||
font-size: vw(15);
|
||||
color: #ffffff;
|
||||
padding-left: vw(42);
|
||||
text-align: left;
|
||||
font-style: normal;
|
||||
text-transform: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0 vw(20);
|
||||
}
|
||||
|
||||
.item-bg-2 {
|
||||
background-image: url('/src/assets/images/t-a-2.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
|
||||
.rt-text {
|
||||
width: vw(116);
|
||||
height: vw(40);
|
||||
font-weight: 400;
|
||||
font-size: vw(14);
|
||||
color: #ffffff;
|
||||
text-align: left;
|
||||
line-height: vw(40);
|
||||
padding-left: vw(40);
|
||||
background-image: url('/src/assets/images/t-b-1.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
.rt-text-2 {
|
||||
background-image: url('/src/assets/images/t-b-2.png');
|
||||
background-size: 100% 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user