|
|
@ -1,5 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div class="solar"> |
|
|
|
|
|
|
|
<gisMap2d ref="gisMap2dsolar" style="width:100vw;height:100vh" |
|
|
|
:mapZoom = "mapZoom" |
|
|
|
:mapCenter="mapCenter" |
|
|
@ -8,6 +9,7 @@ |
|
|
|
radarSliderRight="14%" |
|
|
|
mapBoxHeight="100vh" @clickPointEvent="clickPointEvent" widgetBoxDisplay="none"></gisMap2d> |
|
|
|
<div class="solar_left"> |
|
|
|
|
|
|
|
<div> |
|
|
|
<Bg2 class="content-l-t"> |
|
|
|
<div class="focuse-header"> |
|
|
@ -65,6 +67,7 @@ |
|
|
|
</div> |
|
|
|
</Bg2> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
<Bg2 class="content-l-t"> |
|
|
|
<div class="focuse-header"> |
|
|
@ -124,7 +127,7 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
|
|
|
|
import homeLeftIcons from "./../../Home/components/homeLeftIcons/index.vue"; |
|
|
|
import Vue from "vue"; |
|
|
|
import { gisMap2d } from 'gis-map-universal' |
|
|
|
import Bg2 from "@screen/components/Decorations/bg-2.vue" |
|
|
@ -135,6 +138,7 @@ import SolarEnergy from "./../../Home/components/Dialogs/SolarEnergy/index.vue"; |
|
|
|
const lnglat = [117.16515148266497,35.2797674572588] |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
homeLeftIcons, |
|
|
|
Bg2, |
|
|
|
gisMap2d, |
|
|
|
SolarEnergy, |
|
|
@ -191,8 +195,8 @@ export default { |
|
|
|
} |
|
|
|
}).then(result => { |
|
|
|
const aryPoints = []; |
|
|
|
const sa = require(`@screen/images/layerb/路测设备/太阳能板_active.svg`) |
|
|
|
const sb = require(`@screen/images/layerb/路测设备/太阳能板_fault.svg`) |
|
|
|
const sa = require(`@screen/images/layerb/路测设备/离网光伏供电_active.svg`) |
|
|
|
const sb = require(`@screen/images/layerb/路测设备/离网光伏供电_fault.svg`) |
|
|
|
for(let i of result.data){ |
|
|
|
aryPoints.push({ |
|
|
|
type: 'event', //类型。例如:交通事件、故障停车、摄像机等 【必传字段】 |
|
|
@ -475,7 +479,16 @@ export default { |
|
|
|
height: 100%; |
|
|
|
gap: 10px; |
|
|
|
} |
|
|
|
|
|
|
|
.home-left-icons { |
|
|
|
display: flex; |
|
|
|
gap: 50px; /* 项之间的间距为10px*/ |
|
|
|
flex-direction: row; |
|
|
|
z-index: 0; |
|
|
|
margin-left: 20px; |
|
|
|
.item { |
|
|
|
padding-top: 35px; |
|
|
|
} |
|
|
|
} |
|
|
|
.solar_right { |
|
|
|
position: absolute; |
|
|
|
right: 20px; |
|
|
|