|
|
|
|
@ -62,6 +62,16 @@ export default { |
|
|
|
|
{ lng: 112.372727, lat: 25.635608, name: "雄达实业公司", namecode: '雄达', carbon: 0, electricity: 0 }, |
|
|
|
|
{ lng: 112.373909, lat: 25.634179, name: "锋达实业公司", namecode: '锋达', carbon: 0, electricity: 0 }, |
|
|
|
|
{ lng: 112.37275, lat: 25.63676, name: "伟铸机械实业公司", namecode: '伟铸', carbon: 0, electricity: 0 }, |
|
|
|
|
|
|
|
|
|
// { lng: 112.367576, lat: 25.634695, name: "两把刀实业公司", namecode: '两把刀', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.370479, lat: 25.630191, name: "恒远实业公司", namecode: '恒远', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.376464, lat: 25.635859, name: "正润实业公司", namecode: '正润', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.371836, lat: 25.635749, name: "宏盛实业公司", namecode: '宏盛', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.373776, lat: 25.630812, name: "兄联实业公司", namecode: '兄联', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.369760, lat: 25.631977, name: "金牛五金实业公司", namecode: '金牛五金', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.379236, lat: 25.639678, name: "百俊达实业公司", namecode: '百俊达', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.373365, lat: 25.646583, name: "鑫泉实业公司", namecode: '鑫泉', carbon: 0, electricity: 0 }, |
|
|
|
|
// { lng: 112.371566, lat: 25.623410, name: "合创实业公司", namecode: '合创', carbon: 0, electricity: 0 }, |
|
|
|
|
],//标注点记录 |
|
|
|
|
polyline: null,//昨日轨迹 |
|
|
|
|
viewData: [],//点聚合坐标集合 |
|
|
|
|
@ -74,25 +84,17 @@ export default { |
|
|
|
|
infoShow: false, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
beforeDestroy() { |
|
|
|
|
// clearInterval(this.setInterval); |
|
|
|
|
// console.log('销毁'); |
|
|
|
|
}, |
|
|
|
|
beforeCreate() { |
|
|
|
|
// clearInterval(this.setInterval); |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
this.getData() |
|
|
|
|
// setTimeout(() => { |
|
|
|
|
// this.initMap(); |
|
|
|
|
// }, 0); |
|
|
|
|
// window.addEventListener('resize', () => { |
|
|
|
|
// if (this.baiduMap) { |
|
|
|
|
// this.backMap(); |
|
|
|
|
// } |
|
|
|
|
// }); |
|
|
|
|
}) |
|
|
|
|
this.timeFun = setInterval(() => { |
|
|
|
|
this.getData() |
|
|
|
|
}, 300000) |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
beforeDestroy() { |
|
|
|
|
clearInterval(this.timeFun) |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
@ -291,7 +293,7 @@ export default { |
|
|
|
|
<div> |
|
|
|
|
<div>用电量</div> |
|
|
|
|
<div class="mapslabel-b-font" style="color:#11F150;">${r.electricity}</div> |
|
|
|
|
<span style="color:#11F150;" class="mapslabel-b-font2">kw·h</span> |
|
|
|
|
<span class="mapslabel-b-font2" style="color:#11F150;">kw·h</span> |
|
|
|
|
</div> |
|
|
|
|
<div> |
|
|
|
|
<div>碳排放量</div> |
|
|
|
|
@ -553,11 +555,13 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.BMap_bubble_pop { |
|
|
|
|
/* width: 3.6rem !important; */ |
|
|
|
|
width: 2.6rem !important; |
|
|
|
|
height: 1.26rem !important; |
|
|
|
|
background: url(../../../../public/img/energySourcesProvince/map3.png); |
|
|
|
|
background-size: 98% 100%; |
|
|
|
|
background-repeat: no-repeat; |
|
|
|
|
/* margin: 1.78rem 0 0 1.72rem; */ |
|
|
|
|
margin: 1.78rem 0 0 1.24rem; |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
border: 0 !important; |
|
|
|
|
@ -567,6 +571,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.mapslabel { |
|
|
|
|
/* width: 3.5rem !important; */ |
|
|
|
|
width: 2.5rem !important; |
|
|
|
|
height: 1.26rem !important; |
|
|
|
|
padding-left: 0.26rem; |
|
|
|
|
@ -575,6 +580,7 @@ export default { |
|
|
|
|
|
|
|
|
|
.mapslabel-t { |
|
|
|
|
width: 2rem; |
|
|
|
|
/* width: 3rem; */ |
|
|
|
|
height: 0.32rem; |
|
|
|
|
line-height: 0.32rem; |
|
|
|
|
margin-bottom: 0.14rem; |
|
|
|
|
@ -596,6 +602,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.mapslabel-b { |
|
|
|
|
/* width: 3rem; */ |
|
|
|
|
width: 2rem; |
|
|
|
|
display: flex; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
|