Merge branch 'master' of 1ihldi8qxdvv.angerl.cn:fengjie/fengjie-datascreen

This commit is contained in:
zjc
2024-12-26 18:31:10 +08:00
4 changed files with 89 additions and 23 deletions

View File

@@ -43,7 +43,7 @@
</div> </div>
<div class="tree-a"> <div class="tree-a">
<span class="name-1">其他</span> <span class="name-1">其他</span>
<div class="tree-b" v-if="false"> <div class="tree-b" v-if="true">
<span class="name-2">摄像头1</span> <span class="name-2">摄像头1</span>
<span class="name-2 activee">摄像头1</span> <span class="name-2 activee">摄像头1</span>
<span class="name-2">摄像头1</span> <span class="name-2">摄像头1</span>

View File

@@ -106,8 +106,6 @@
top:0, top:0,
width:fitChartSize(250), width:fitChartSize(250),
height:fitChartSize(250), height:fitChartSize(250),
// width:200,
// height:200,
radius: ['40%', '50%'], radius: ['40%', '50%'],
avoidLabelOverlap: false, avoidLabelOverlap: false,
padAngle: 5, padAngle: 5,
@@ -143,7 +141,9 @@
], ],
}); });
const optionLine = ref({ const optionLine = ref({
backgroundColor:'transparent', backgroundColor:'transparent',
grid:{ grid:{
top:'50', top:'50',
bottom:'50', bottom:'50',
@@ -246,6 +246,10 @@
bottom: 20, bottom: 20,
itemWidth:5, itemWidth:5,
itemHeight:5, itemHeight:5,
textStyle:{
fontSize:fitChartSize(12),
}
}, },
grid: { grid: {
left: '3%', left: '3%',
@@ -287,7 +291,6 @@
min:0, min:0,
max:45, max:45,
interval:15, interval:15,
axisLabel: { axisLabel: {
fontSize: fitChartSize(12) ,// 设置Y轴刻度字体大小 fontSize: fitChartSize(12) ,// 设置Y轴刻度字体大小
color: 'rgba(255,255,255,0.9)', color: 'rgba(255,255,255,0.9)',
@@ -304,7 +307,6 @@
} }
], ],
series: [ series: [
{ {
itemStyle: { itemStyle: {
// 设置柱状图颜色 // 设置柱状图颜色

View File

@@ -1,6 +1,21 @@
<template> <template>
<div class="n-box-traffic">
<!-- nav -->
<div class="left-nav">
<div class="top-box">
<div class="ul">
<div class="li active">路段1</div>
<div class="li">路段1</div>
<div class="li">路段1</div>
<div class="li">路段1</div>
<div class="li">路段1</div>
</div>
</div>
</div>
<div class="traffic-box-2"> <div class="traffic-box-2">
<div class="map-box"> <div class="map-box">
<Map></Map> <Map></Map>
<!-- 视频 --> <!-- 视频 -->
<div class="video-list"> <div class="video-list">
@@ -14,6 +29,8 @@
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<script setup> <script setup>
@@ -48,14 +65,60 @@
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.n-box-traffic{
display: flex;
margin-top:vh(100);
}
.left-nav{
margin-left:vw(10);
// margin-top:vh(35);
// width:vw(250);
.top-box{
text-align: left;
font-weight: 400;
font-size: vw(18);
color: rgba(255,255,255,0.7);
line-height: 21px;
text-align: left;
font-style: normal;
text-transform: none;
.title{
font-weight: 600;
font-size: vw(15);
text-align: left;
font-style: normal;
text-transform: none;
height:vh(35);
line-height: vh(34);
padding-left:vw(20);
// background: linear-gradient(90deg, #FFFFFF 0%, #75C1FF 100%);
}
.ul{
.li{
background: url('/src/assets/images/m-nav-bg-1.png');
background-size: 100% 100%;
width:vw(120);
height:vh(58);
line-height:vh(58);
text-align: center;
margin-bottom:vh(15);
}
.active{
background: url('/src/assets/images/m-nav-bg-2.png');
background-size: 100% 100%;
// width:vw(178);
}
}
}
}
.traffic-box-2{ .traffic-box-2{
width:vw(1517); width:vw(1390);
height:vh(965); height:vh(975);
background-image: url('/src/assets/images/map-bg-2.png'); background-image: url('/src/assets/images/map-bg-2.png');
background-size: 100% 100%; background-size: 100% 100%;
margin:0 vw(10); margin:0 vw(10);
padding:vh(35) vw(30); padding:vh(35) vw(30);
margin-top:vh(110); margin-right:0;
position:relative; position:relative;
z-index:9; z-index:9;
.map-box{ .map-box{

View File

@@ -151,10 +151,10 @@
provide(THEME_KEY, 'dark'); provide(THEME_KEY, 'dark');
const option1 = ref({ const option1 = ref({
backgroundColor: 'transparent', backgroundColor: 'transparent',
height: fitChartSize(230),
width: '92%', width: '92%',
// height: fitChartSize(300),
grid: { grid: {
top: '50', top: fitChartSize(90),
bottom: '0', bottom: '0',
left: '4%', left: '4%',
containLabel: true, containLabel: true,
@@ -304,7 +304,7 @@
margin: 0 vw(10); margin: 0 vw(10);
margin-top: vh(100); margin-top: vh(100);
.content-2{ .content-2{
margin-top:vh(10); margin-top:vh(20);
} }
.content-1 { .content-1 {
.chart-item { .chart-item {
@@ -392,8 +392,9 @@
left: vw(-8); left: vw(-8);
span { span {
position: relative; position: absolute;
top: vh(-5); top: 50%;
transform: translateY(-50%);
} }
} }
} }