From 2de58910b3ac5e2b70d00fe618044b0c3bd1463f Mon Sep 17 00:00:00 2001
From: yangxiaojiang <851673013@qq.com>
Date: Mon, 25 Jul 2022 17:41:28 +0800
Subject: [PATCH] update
---
src/api/construction/index.js | 25 +
src/supermap/createMarkerPopup.js | 5 +
.../components/ComplaintEvent.vue | 42 +-
.../construction/components/SiteCameraPop.vue | 518 ++++++++++++++++++
.../construction/components/SiteList.vue | 1 +
.../construction/components/SiteRoadPop.vue | 47 +-
.../construction/components/VideoList.vue | 29 +-
src/views/pages/construction/index.vue | 109 +++-
.../roadGovernance/components/RoadMain.vue | 36 +-
9 files changed, 732 insertions(+), 80 deletions(-)
create mode 100644 src/views/pages/construction/components/SiteCameraPop.vue
diff --git a/src/api/construction/index.js b/src/api/construction/index.js
index 5deb860..ab51994 100644
--- a/src/api/construction/index.js
+++ b/src/api/construction/index.js
@@ -126,3 +126,28 @@ export function selectWeekPmAndNoice(params) {
})
}
+export function selectByDayRaise(params) {
+ return request({
+ url: 'api/project/building/selectByDayRaise',
+ method: 'get',
+ params,
+ })
+}
+
+export function selectByDayNoice(params) {
+ return request({
+ url: 'api/project/building/selectByDayNoice',
+ method: 'get',
+ params,
+ })
+}
+
+export function selectByDayRoadData(params) {
+ return request({
+ url: 'api/project/building/selectByDayRoadData',
+ method: 'get',
+ params,
+ })
+}
+
+
diff --git a/src/supermap/createMarkerPopup.js b/src/supermap/createMarkerPopup.js
index c2e32f5..76018cd 100644
--- a/src/supermap/createMarkerPopup.js
+++ b/src/supermap/createMarkerPopup.js
@@ -35,6 +35,9 @@ import SiteListPop from '@/views/pages/construction/components/SiteListPop'
import WaterPointPop from '@/views/pages/waterPoints/components/WaterPointPop'
import SiteRoadPop from '@/views/pages/construction/components/SiteRoadPop'
+
+import bus from "@/views/layout/bus";
+
/**
* 生成专题通用弹窗Dom
* @param responseData
@@ -206,6 +209,8 @@ function creatNucleicAcidMonitoringSites(feature) {
//在建工地走航监测弹窗
function createSiteRoadPop(feature) {
+ bus.$emit('roadCauseAnalysis',feature.data)
+
const popupDom = new Dom({
template: '
噪声
+{{ feature.data.noice || feature.data.noice == 0 ? feature.data.noice : ''}}dB
+扬尘
+{{ feature.data.pm10 || feature.data.noice == 0 ? feature.data.noice : '' }}ug/m3
+道路名称:{{feature.data.roadName||''}}
@@ -56,9 +57,19 @@ export default { width: auto !important } .site-road-popup { + .leaflet-popup-content-wrapper { + box-shadow: 0 0 10px rgba($color: #1ffefd, $alpha: .4); + background: rgba(24,51,76,.95); + border: 1px solid rgba(50,227,235,.95); + } .leaflet-popup-content { width: unset !important; + } + .leaflet-popup-close-button { + color: #3afefc !important; + font-size: 12px; + } } diff --git a/src/views/pages/construction/components/VideoList.vue b/src/views/pages/construction/components/VideoList.vue index a634141..a2c515b 100644 --- a/src/views/pages/construction/components/VideoList.vue +++ b/src/views/pages/construction/components/VideoList.vue @@ -224,20 +224,21 @@ export default { }, treeCameraClick(data) { console.log(data) - // if(data.channelCode){ - // const cameraTree = [{ - // latLng: { lat: data.gpsY, lng: data.gpsX }, - // data: data, - // type:'cameraTree' - // }] - // this.hiMapFun.removeLayerByLayerName("cameraTree"); - // this.hiMapFun.openPopupVideoSurveillance(cameraTree[0]) - // const arr = [0,0.0,'','0','0.0'] - // if(arr.indexOf(data.gpsX) == -1){ - // this.hiMapFun.addResourceOnMapWithoutSuperMapCluster(cameraTree,"poi-red.png", "cameraTree"); - // this.hiMap.mapObj.map.flyTo({ lat: data.gpsY, lng: data.gpsX }); - // } - // } + this.$parent.removeRoadCauseAnalysis() + if(data.channelCode){ + const cameraTree = [{ + latLng: { lat: data.gpsY, lng: data.gpsX }, + data: data, + type:'cameraTree' + }] + this.$parent.hiMapFun.removeLayerByLayerName("cameraTree"); + this.$parent.hiMapFun.openPopupVideoSurveillance(cameraTree[0]) + const arr = [0,0.0,'','0','0.0'] + if(arr.indexOf(data.gpsX) == -1){ + this.$parent.hiMapFun.addResourceOnMapWithoutSuperMapCluster(cameraTree,"poi-red.png", "cameraTree"); + this.$parent.hiMap.mapObj.map.flyTo({ lat: data.gpsY, lng: data.gpsX }); + } + } }, filterNode(value, data) { if (value == "2") return true; diff --git a/src/views/pages/construction/index.vue b/src/views/pages/construction/index.vue index 699ddcd..8df9d8d 100644 --- a/src/views/pages/construction/index.vue +++ b/src/views/pages/construction/index.vue @@ -38,12 +38,12 @@1236件
+{{allListDataNum}}件