From c25a98e819ace275f460aeb743ede05a3a5374d5 Mon Sep 17 00:00:00 2001 From: biexueqin <1315359915@qq.com> Date: Wed, 21 May 2025 16:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9B=BE=E5=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/highScore/monitoring.png | Bin 0 -> 1767 bytes src/assets/highScore/tollStation.png | Bin 0 -> 1638 bytes src/components/Legend/index.vue | 161 ++ src/components/MapContainer/index.vue | 1140 +++++--------- src/views/highScore/dailyMonitoring/index.vue | 1345 +++++++---------- src/views/highScore/dailyMonitoring/test.ts | 262 ++-- 6 files changed, 1233 insertions(+), 1675 deletions(-) create mode 100644 src/assets/highScore/monitoring.png create mode 100644 src/assets/highScore/tollStation.png create mode 100644 src/components/Legend/index.vue diff --git a/src/assets/highScore/monitoring.png b/src/assets/highScore/monitoring.png new file mode 100644 index 0000000000000000000000000000000000000000..c731758e348b8cda456304fbd851095d535288d1 GIT binary patch literal 1767 zcmVPx*p-DtRR9HuiS8Hq(RTTd2PItRYO9>Px&{9jOr7wuJqJ)Qtykb#6h{O;9d5Mt( z1$l-Dgn&^Ic_bPkQ3wHoRU)xKdA7(KSqlM{S}3KIw$RcN=xevzoqNp8>^yd+1?JDr z+`V(YbM86ccg`@p=tacRuha~%QD7_)V!_22a72?Bs3V}7#6YDjKu0|zlCOa=dJ(hi zd7F|h-i~rPJ1zjxOyWEdoIu2(|8fxL01?2Yd$E*=b|5@#OYzW@hG*Gt7d*>d)xjSY zHj6l4&p=Tsfby#Y%FhyL&>`(V&g+T9mCaEtzf=q!>}|`5Ho-FsAN2|_@fd(~QX`U$ zw;i$BA>{;AC&^q=cywgD>?x>zg3m7(!y5=_X_4)zC!*MVDuBnAe3V@; zN1k!HVkLle?a?Tl5e^PaM6A>PJXt_Ra|^~EbHf)1$XX!Rgh>}bSY9?G``aLR`Ay=K zs^nTfW>q+rCw0g4xGol8ugKvNY?k#Mw=1#!$}MnJe5|Y}x;JZl8tZ@lZVI>Aiqs-9 z9+9*bV;690NU{bX5+S$hG1lHFLxVqnNE^fI0SOo%*Bv$kcLx7;77rV}dN3vtvWY?} zOTSRIh=}WjW{6%ovNt#2A@p@+P8t-A<2ZkAd5fR=yS%F@o3{6?HlQKATXr707~+=T8}oZL$`_-dXT z4XptzPm9OwBxOyyHhb=3>-ADZ3N~E(V1&H3>XHY$ipttmMMlVBX@3`==0w9Ja9xvw zV!=6vbdAKX1CtTpgw))Nh!7aAzB|ZLWc_pU(dci*t*K*Rw=qmRb_u5|YGiPuXsL_> zQ9esMRkVk5KGmE?P9>_FeTZ>|V{%d~x;n%0`>k@UI8&$qs|6eqh(bB( zl)1qANTg)Rhut3HJk=~Pa^4LZ&p_zmbl~HD@tB*ca9_H%-zdS(8+TAC^Isn%tf|!0 zv*^LHIcc&YBl;nI zo#b{bF^Y)Si@w&_M{DLc>chnTGoKOBkE&#vrVvCs>^M8=EjSHTZYH}gAY#zY1E_71 zG(9v3xkXr;JlAoY;BChrcPxVqYYIq&v@EJWrEk1Rk3EyV|B?gz4qRBxNlgi zkWa+pRap%ED0ueVZgkdwTrM*HcFodxcZ{iOb8hdoH@B_X*gAu@0AB1X^?zg2Tf>Gthiw1=002ov JPDHLkV1n;2P-_4H literal 0 HcmV?d00001 diff --git a/src/assets/highScore/tollStation.png b/src/assets/highScore/tollStation.png new file mode 100644 index 0000000000000000000000000000000000000000..10dd664143e9c5d9385b51083804ba5fbb459db0 GIT binary patch literal 1638 zcmV-s2ATPZP)Px*AW1|)R9HuqR|{+uRTMpMcDu7}=~khDrQuWPhZaKu;xCE;F(OogARR`&6}Cs?ac1B zb&}0wW_I2=_r7!Py~EJUg9uD59W|P`e=;Ma5Ya#e>PMVf7*P`u8kok*V_vL1#~7$L z%d(#S)Uq$l(X($I2E3S z1iTL-j{p!jK|ni!z_lPEm~pg&^VM=JcCp#@osmdH1n)SOImjtVCqOhR0MkJRSdPU89{q7`RfJp2fK1I|2<90g#^3z^|Lgt*N)a)1-1tOjvZIsw)8tIF)21 zDI`@gqM^OmTN5ChkjN4f+Th}BJSU>7s?Ryj^Lj%|fItwO%F<-j?>J7JCW(hVMjYH* ztN09Hfft@FMmQz=JUJ}CMiCf6aPP5<0!G+qu(Ua6Yy@v{eBIa|LSIbUi{n#RT&lK_7aSpj(oN+F}VqSbl4}9=Y;$ z`f31cLa8!SDfY~h4%d|OaHnt;%HC8Xy%EJ0JzEm+mYo03Is^Pj`X59*%ThQ*MD77_ zj(G>tkeqOE;?T}-fm*rNs_ZCQu&rGcySy!%DTgyg60|C#QiZdX=U$CkqJ3n5tEmZlPrzoT984`H&}>VSFqJ9p$@A+$ zck03GPQsCutAi_FWI~=_4PVI&@cJ`=6a#tQdHBz~4d?hZ(0<X9qOj{tD!DP*zzA;0`9{6DXQ^P!bc z%NK(UeggiA6(CIw_k9Aiz5W!^o5M}T+@>8wqk2iqv%UeXlZ=ZB|(*Zl~2@g;b-XIVTg z&nbg)U`mwXLx@mH72C^{UC9?g$g-AKgROh%&2GS-g)}?|&e6HhE*~{4r5^-o#1v>3 zi=mbm*m}F(@v7qARkQW-+PO1%6^K4yM&Y;o*`0SQI{2X+IL0gmOBw|!VGww04Zu~f zz8S#n259wXp_VKTA4WJ<#TEJ2>fkrG_V43yvU(yUTKvu=xbwP+ym%^{55EcCQVnV7 z1W@BIfa(RiZ!CE2Nl2-apzIoN89Ioly~ClU3@F5%P(R-`AdfiT+Et}e%Hwd&I2JW> zy%t?N4R+5kXqBIZA{3^4a2cSq!Mkmo1zZ9xa~JVX#k-+N<`7)Ut)y>=)6}3B;gN5LS0H&reCHfBBUiYdlRt+yDRo07*qoM6N<$f{9}OL;wH) literal 0 HcmV?d00001 diff --git a/src/components/Legend/index.vue b/src/components/Legend/index.vue new file mode 100644 index 0000000..a301d5b --- /dev/null +++ b/src/components/Legend/index.vue @@ -0,0 +1,161 @@ + + + + + \ No newline at end of file diff --git a/src/components/MapContainer/index.vue b/src/components/MapContainer/index.vue index 2a1dd3a..b57338a 100644 --- a/src/components/MapContainer/index.vue +++ b/src/components/MapContainer/index.vue @@ -1,24 +1,19 @@ diff --git a/src/views/highScore/dailyMonitoring/index.vue b/src/views/highScore/dailyMonitoring/index.vue index 1dba429..38927bc 100644 --- a/src/views/highScore/dailyMonitoring/index.vue +++ b/src/views/highScore/dailyMonitoring/index.vue @@ -23,18 +23,14 @@
-
- -
- +
+ +
+
@@ -71,7 +67,7 @@
- +
@@ -81,815 +77,638 @@
+ + -
-
- - 图例名称 -
-
- -
-
diff --git a/src/views/highScore/dailyMonitoring/test.ts b/src/views/highScore/dailyMonitoring/test.ts index c620bd5..a6ce063 100644 --- a/src/views/highScore/dailyMonitoring/test.ts +++ b/src/views/highScore/dailyMonitoring/test.ts @@ -4,11 +4,15 @@ export const lineLayerData = { { geometry: { coordinates: [ - [106.548357837707, 29.58680219459827, 3], - [106.5484601219108, 29.58680682983413, 3], - [106.5484601219108, 29.58680682983413, 3], - [106.5485623058675, 29.58681146052703, 3], - [106.5486644902761, 29.58681609124043, 3], + [106.540, 29.580, 3], + [106.542, 29.581, 3], + [106.544, 29.582, 3], + [106.546, 29.583, 3], + [106.548, 29.584, 3], + [106.550, 29.585, 3], + [106.552, 29.586, 3], + [106.554, 29.587, 3], + [106.556, 29.588, 3] ], type: 'LineString', }, @@ -16,22 +20,20 @@ export const lineLayerData = { color: '#ffff00', // 黄色 UserID: 0, z: 3, + width: 5 // 增加线宽 }, type: 'Feature', }, - { geometry: { coordinates: [ - [106.5486644902761, 29.58681609124043, 3], - [106.5488177260367, 29.58682303545917, 3], - [106.5489199317008, 29.5868276671358, 3], - [106.5490220371176, 29.58683229426947, 3], - [106.5490730902784, 29.58683460785685, 3], - [106.5490730902784, 29.58683660785685, 3], - [106.5490730902784, 29.58683860785685, 3], - [106.5490730902784, 29.58684060785685, 3], - [106.5490730902784, 29.58684260785685, 3], + [106.556, 29.588, 3], + [106.558, 29.589, 3], + [106.560, 29.590, 3], + [106.562, 29.591, 3], + [106.564, 29.592, 3], + [106.566, 29.593, 3], + [106.568, 29.594, 3] ], type: 'LineString', }, @@ -39,49 +41,53 @@ export const lineLayerData = { color: 'red', UserID: 0, z: 3, + width: 5 // 增加线宽 }, type: 'Feature', }, ], }; + export const lineLayerData1 = { type: 'FeatureCollection', features: [ { geometry: { coordinates: [ - [106.5472909339584, 29.58596744065201, 3], - [106.5472909339584, 29.58616744065201, 3], - [106.5472909339584, 29.58636744065201, 3], + [106.540, 29.595, 3], + [106.545, 29.595, 3], + [106.550, 29.595, 3], + [106.555, 29.595, 3], + [106.560, 29.595, 3], + [106.565, 29.595, 3], + [106.570, 29.595, 3] ], - // type: "LineString" type: 'LineString', }, properties: { color: '#ffff00', // 黄色 UserID: 0, z: 3, + width: 5 }, type: 'Feature', }, { geometry: { coordinates: [ - [106.5472909339584, 29.58636744065201, 3], - [106.5472909439584, 29.58666744065201, 3], - [106.5472509439584, 29.58696744065201, 3], - [106.5472609339584, 29.58726744065201, 3], - [106.5472909339584, 29.58746744065201, 3], - [106.5472909339584, 29.58766744065201, 3], - [106.5472909339584, 29.58776744065201, 3], + [106.570, 29.595, 3], + [106.570, 29.590, 3], + [106.570, 29.585, 3], + [106.570, 29.580, 3], + [106.570, 29.575, 3] ], - // type: "LineString" type: 'LineString', }, properties: { color: 'red', UserID: 0, z: 3, + width: 5 }, type: 'Feature', }, @@ -94,29 +100,40 @@ export const lineLayerData2 = { { geometry: { coordinates: [ - [106.5486909339584, 29.58556744065201, 3], - [106.5484909339584, 29.58596744065201, 3], - [106.5484909339584, 29.58616744065201, 3], - [106.5484909339584, 29.58636744065201, 3], - [106.5484909339584, 29.58666744065201, 3], - [106.5484909339584, 29.58696744065201, 3], - [106.5484909339584, 29.58676744065201, 3], - [106.5484909339584, 29.58686744065201, 3], - [106.5484909339584, 29.58696744065201, 3], - [106.5484909339584, 29.58706744065201, 3], - [106.5484909339584, 29.58716744065201, 3], - [106.5484909339584, 29.58726744065201, 3], - [106.5484909339584, 29.58746744065201, 3], - [106.5484909339584, 29.58756744065201, 3], - [106.5484909339584, 29.58766744065201, 3], - [106.5484909339584, 29.58776744065201, 3], + [106.545, 29.580, 3], + [106.550, 29.585, 3], + [106.555, 29.590, 3], + [106.560, 29.595, 3], + [106.565, 29.600, 3], + [106.570, 29.605, 3], + [106.575, 29.610, 3] + ], + type: 'LineString', + }, + properties: { + color: '#00ff00', // 绿色 + UserID: 0, + z: 3, + width: 8 // 更宽的线 + }, + type: 'Feature', + }, + { + geometry: { + coordinates: [ + [106.575, 29.610, 3], + [106.570, 29.615, 3], + [106.565, 29.620, 3], + [106.560, 29.625, 3], + [106.555, 29.630, 3] ], - // type: "LineString" type: 'LineString', }, properties: { + color: '#0000ff', // 蓝色 UserID: 0, z: 3, + width: 8 }, type: 'Feature', }, @@ -127,136 +144,134 @@ export const pointData = { type: 'FeatureCollection', features: [ { - w: 29.58596744065201, + w: 29.54702303545917, t: 24.6, l: 11, m: 'G234', - j: 106.5484909339584, + j: 106.6812177260367, h: '59838', backgoundColor: 'red', }, { - w: 29.58596744065201, + w: 29.60702303545917, t: 24.6, l: 11, - m: 'G241', - j: 106.5472909339584, + m: 'G234', + j: 106.6812177260367, h: '59838', backgoundColor: 'red', }, { - w: 29.58798044065201, + w: 29.60702303545917, t: 24.6, l: 11, - m: 'G241', - j: 106.5472909339584, + m: 'G234', + j: 106.6312177260367, h: '59838', backgoundColor: 'red', }, - { - w: 29.58648044065201, + w: 29.65702303545917, t: 24.6, l: 11, m: 'G234', - j: 106.5468909339584, + j: 106.6022177260367, h: '59838', backgoundColor: 'red', }, { - w: 29.58728044065201, + w: 29.65702303545917, t: 24.6, l: 11, m: 'G234', - j: 106.5478909339584, + j: 106.5622177260367, h: '59838', backgoundColor: 'red', }, { - w: 29.58768044065201, + w: 29.63702303545917, t: 24.6, l: 11, m: 'G234', - j: 106.5479909339584, + j: 106.5822177260367, h: '59838', backgoundColor: 'red', }, { - w: 29.58608044065201, + w: 29.58702303545917, t: 24.6, l: 11, m: 'G234', - j: 106.5490909339584, + j: 106.6022177260367, h: '59838', backgoundColor: 'red', }, { - w: 29.58668044065201, + w: 29.55702303545917, t: 24.6, l: 11, m: 'G234', - j: 106.5489909339584, + j: 106.6022177260367, h: '59838', backgoundColor: 'red', }, { - w: 29.58650044065201, + w: 29.65702303545917, t: 24.6, l: 11, - m: 'x456', - j: 106.5476909339584, + m: 'G234', + j: 106.4822177260367, h: '59838', - backgoundColor: 'skyblue', + backgoundColor: 'red', }, { - w: 29.58682044065201, + w: 29.62702303545917, t: 24.6, l: 11, m: 'x456', - j: 106.5480909339584, + j: 106.5222177260367, h: '59838', backgoundColor: 'skyblue', }, { - w: 29.58742044065201, //上下,大是越上 + w: 29.60702303545917, t: 24.6, l: 11, m: 'x456', - j: 106.5486909339584, //左右,大是往右偏 + j: 106.5822177260367, h: '59838', backgoundColor: 'skyblue', }, { - w: 29.58672044065201, + w: 29.62702303545917, t: 24.6, l: 11, m: 'x456', - j: 106.5494909339584, + j: 106.6222177260367, h: '59838', backgoundColor: 'skyblue', }, { - w: 29.58582044065201, + w: 29.56702303545917, t: 24.6, l: 11, m: 'x456', - j: 106.5492909339584, + j: 106.5622177260367, h: '59838', backgoundColor: 'skyblue', }, - { - w: 29.58722044065201, + w: 29.56702303545917, t: 24.6, l: 11, m: 'x456', - j: 106.5498909339584, + j: 106.5622177260367, h: '59838', backgoundColor: 'skyblue', }, { - w: 29.58742044065201, + w: 29.53742044065201, t: 24.6, l: 11, m: 'x456', @@ -265,83 +280,74 @@ export const pointData = { backgoundColor: 'skyblue', }, { - w: 29.58742044065201, - t: 24.6, - l: 11, - m: 'S234', - j: 106.55072909339584, - h: '59838', - backgoundColor: 'yellow', - }, - { - w: 29.58762044065201, + w: 29.59702303545917, t: 24.6, l: 11, - m: 'S234', - j: 106.55122909339584, + m: 'x456', + j: 106.5022177260367, h: '59838', - backgoundColor: 'yellow', + backgoundColor: 'skyblue', }, { - w: 29.58662044065201, + w: 29.57702303545917, t: 24.6, l: 11, - m: 'S234', - j: 106.55122909339584, + m: 'x456', + j: 106.4822177260367, h: '59838', - backgoundColor: 'yellow', + backgoundColor: 'skyblue', }, { - w: 29.58682044065201, + w: 29.62702303545917, t: 24.6, l: 11, m: 'S234', - j: 106.5498909339584, + j: 106.4822177260367, h: '59838', backgoundColor: 'yellow', }, { - w: 29.58662044065201, + w: 29.60702303545917, t: 24.6, l: 11, m: 'S234', - j: 106.5496909339584, + j: 106.462177260367, h: '59838', backgoundColor: 'yellow', }, { - w: 29.58762044065201, + w: 29.54702303545917, t: 24.6, l: 11, m: 'S234', - j: 106.5498909339584, + j: 106.462177260367, h: '59838', backgoundColor: 'yellow', }, { - w: 29.58792044065201, + w: 29.52702303545917, t: 24.6, l: 11, m: 'S234', - j: 106.5496909339584, + j: 106.442177260367, h: '59838', backgoundColor: 'yellow', }, { - w: 29.58792044065201, + w: 29.56702303545917, t: 24.6, l: 11, m: 'S234', - j: 106.5500909339584, + j: 106.522177260367, h: '59838', backgoundColor: 'yellow', }, { - w: 29.58792044065201, + w: 29.56702303545917, t: 24.6, l: 11, m: 'S234', - j: 106.5480909339584, + j: 106.542177260367, h: '59838', backgoundColor: 'yellow', }, @@ -620,46 +626,54 @@ export const chargeAddLayer4 = [ export const dailyAddLayer1 = [ { - lng: 106.5509177260367, // 中心点经度 - lat: 29.58742303545917, // 中心点纬度 + lng: 106.5509177260367, + lat: 29.62742303545917, + }, + { + lng: 106.4309177260367, + lat: 29.63942303545917, }, ]; export const dailyAddLayer2 = [ { - lng: 106.5509177260367, // 中心点经度 - lat: 29.58622303545917, // 中心点纬度 + lng: 106.6089177260367, + lat: 29.52922303545917, }, { - lng: 106.5509177260367, // 中心点经度 - lat: 29.58622303545917, // 中心点纬度 + lng: 106.6689177260367, + lat: 29.51522303545917, + }, + { + lng: 106.4889177260367, + lat: 29.53922303545917, }, ]; //车辆 export const dailyAddLayer3 = [ { - lng: 106.5509177260367, // 中心点经度 - lat: 29.58712303545917, // 中心点纬度 + lng: 106.6509177260367, + lat: 29.58712303545917, }, { - lng: 106.5469177260367, // 中心点经度 - lat: 29.58712303545917, // 中心点纬度 + lng: 106.4069177260367, + lat: 29.57712303545917, }, { - lng: 106.5469177260367, // 中心点经度 - lat: 29.58602303545917, // 中心点纬度 + lng: 106.4269177260367, + lat: 29.50712303545917, }, ]; //应急设施 export const dailyAddLayer4 = [ { - lng: 106.5512177260367, // 中心点经度 - lat: 29.58702303545917, // 中心点纬度 + lng: 106.7012177260367, + lat: 29.57702303545917, }, { - lng: 106.5505177260367, // 中心点经度 - lat: 29.58682303545917, // 中心点纬度 + lng: 106.6312177260367, + lat: 29.55702303545917, }, ];