diff --git a/src/api/area.js b/src/api/area.js index 34a969a..74aff6d 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -7,4 +7,12 @@ export function selectKeyAreaList(params) { params }) } + + export function selectByAreaName(params) { + return request({ + url: 'api/project/keyArea/selectByAreaName', + method: 'get', + params, + }) + } \ No newline at end of file diff --git a/src/assets/waterPoints/rotateBgi.png b/src/assets/waterPoints/rotateBgi.png new file mode 100644 index 0000000..904126a Binary files /dev/null and b/src/assets/waterPoints/rotateBgi.png differ diff --git a/src/assets/waterPoints/toadyListBgi2.png b/src/assets/waterPoints/toadyListBgi2.png new file mode 100644 index 0000000..189129e Binary files /dev/null and b/src/assets/waterPoints/toadyListBgi2.png differ diff --git a/src/supermap/createMarkerPopup.js b/src/supermap/createMarkerPopup.js index a31ec6a..c2e32f5 100644 --- a/src/supermap/createMarkerPopup.js +++ b/src/supermap/createMarkerPopup.js @@ -33,6 +33,7 @@ import RoadGovernancePop from '@/views/pages/roadGovernance/components/RoadGover import EventListDetailsPop from '@/views/pages/civilizedCity/components/EventListDetailsPop' import SiteListPop from '@/views/pages/construction/components/SiteListPop' import WaterPointPop from '@/views/pages/waterPoints/components/WaterPointPop' +import SiteRoadPop from '@/views/pages/construction/components/SiteRoadPop' /** * 生成专题通用弹窗Dom @@ -202,6 +203,24 @@ function creatNucleicAcidMonitoringSites(feature) { }) return popupDom.initDom() } + +//在建工地走航监测弹窗 +function createSiteRoadPop(feature) { + const popupDom = new Dom({ + template: '', + data() { + return { + feature: feature, + } + }, + created() { + }, + components: { + SiteRoadPop + } + }) + return popupDom.initDom() +} /** * 生成专题企业信息通用弹窗Dom * @param resourceTitle @@ -671,4 +690,5 @@ export { createEventListDetailsPop, createSiteListPop, createWaterPointPop, + createSiteRoadPop, } diff --git a/src/supermap/map-showResource.js b/src/supermap/map-showResource.js index 62aed18..868e4fd 100644 --- a/src/supermap/map-showResource.js +++ b/src/supermap/map-showResource.js @@ -586,8 +586,9 @@ function addPointsToMap (features, url, lastOne, createPopupFun, DS, featureGrou L.popup({ className: 'roadGovernance-popup', keepInView: false,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) } else if(feature.type=='site'){ L.popup({ className: 'site-popup', keepInView: false,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) - } - else if(feature.type=='waterPoint'){ + } else if(feature.type=='siteRoad'){ + L.popup({ className: 'site-road-popup', keepInView: false,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) + } else if(feature.type=='waterPoint'){ L.popup({ className: 'water-point-pop', keepInView: false,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) } else{ L.popup({ className: 'epidemic-address', keepInView: false, maxHeight: 300 }).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) diff --git a/src/views/pages/area/components/SiteList.vue b/src/views/pages/area/components/SiteList.vue index 77819d7..047b4d5 100644 --- a/src/views/pages/area/components/SiteList.vue +++ b/src/views/pages/area/components/SiteList.vue @@ -52,7 +52,8 @@ + + diff --git a/src/views/pages/construction/components/StatisticalAnalysis.vue b/src/views/pages/construction/components/StatisticalAnalysis.vue index e530028..e756bee 100644 --- a/src/views/pages/construction/components/StatisticalAnalysis.vue +++ b/src/views/pages/construction/components/StatisticalAnalysis.vue @@ -26,7 +26,7 @@ >{{item}} -
+
000
@@ -37,7 +37,18 @@
-
+
+
+ 000件 +
+
+
+
+
+
+
+
+
000
@@ -56,14 +67,15 @@ color: '#1ffefd', 'background-color': '#2b4b7a', }" + style="background: transparent" > - + - + - + @@ -78,8 +90,8 @@ import * as echarts from 'echarts' export default { data () { return { - tabsButton: ["视频感知事件","出租车走航监测"], - tabsActiveName: "视频感知事件", + tabsButton: ["视频感知","物联感知","走航监测"], + tabsActiveName: "视频感知", filterButton:{ typeSelect:['全部','近7天','近30天'], typeSelectActive:'全部', @@ -119,14 +131,14 @@ import * as echarts from 'echarts' methods: { tabHandleClick(item) { this.tabsActiveName = item - if(item == '视频感知事件') { + if(item == '视频感知') { this.$nextTick( () => { this.initEventTypeCharts() this.initEventStateCharts() this.initEventTimeCharts() }) } - if(item == '出租车走航监测') { + if(item == '走航监测') { this.$nextTick( () => { this.initRoadTimeCharts() }) diff --git a/src/views/pages/construction/components/VideoList.vue b/src/views/pages/construction/components/VideoList.vue index 087b26d..a634141 100644 --- a/src/views/pages/construction/components/VideoList.vue +++ b/src/views/pages/construction/components/VideoList.vue @@ -14,7 +14,7 @@
-
+
-
+
.el-tree-node__content { + background-color: rgba(27,255,255,.2); + color: #fff; + } + } } } diff --git a/src/views/pages/construction/components/VideoPlay.vue b/src/views/pages/construction/components/VideoPlay.vue new file mode 100644 index 0000000..720b4c7 --- /dev/null +++ b/src/views/pages/construction/components/VideoPlay.vue @@ -0,0 +1,409 @@ + + + + + + + + diff --git a/src/views/pages/construction/index.vue b/src/views/pages/construction/index.vue index 906c4d2..699ddcd 100644 --- a/src/views/pages/construction/index.vue +++ b/src/views/pages/construction/index.vue @@ -64,6 +64,11 @@
+ +
@@ -79,6 +84,7 @@ import SiteList from "./components/SiteList"; import { selectByJdWd } from "@/api/construction/index"; import { createSiteListPop } from "@/supermap/createMarkerPopup"; import {createCameraDetailsPop} from '@/supermap/createMarkerPopup'; +import VideoPlay from './components/VideoPlay' export default { data() { @@ -90,6 +96,9 @@ export default { constructionSiteData: [], changeLayerBtnList: ['AI事件','视频监控','工地','道路'], changeLayerBtnGroup: [], + + openVideo: false, + channelCode:[] }; }, @@ -98,6 +107,7 @@ export default { complaintEvent, VideoList, SiteList, + VideoPlay }, created() {}, mounted() { @@ -146,6 +156,12 @@ export default { bus.$on("CameraSingleDataOnMap",(labelName,data) => { this.addResourceTomap(labelName,data); }) + + bus.$off('openCurrentVideoWaterPoint') + bus.$on('openCurrentVideoWaterPoint',channelCode => { + this.openVideo = true; + this.channelCode.unshift(channelCode) + }) }, methods: { querySearchAsync(queryString, cb) { diff --git a/src/views/pages/roadGovernance/components/RoadMain.vue b/src/views/pages/roadGovernance/components/RoadMain.vue index a1b89b3..854441b 100644 --- a/src/views/pages/roadGovernance/components/RoadMain.vue +++ b/src/views/pages/roadGovernance/components/RoadMain.vue @@ -323,20 +323,8 @@ export default { methods: { // 道路污染数据 昨日 - // async getRoadData() { - // const res = await getRoadData({ dt: this.preTime }); - // //路网数据 - // this.roadData = res.data.data; - // //道路事件 pm>200 - // // const data = res.data.data.filter((item) => item.pm10 > 150); - // // this.tableData = data; - // // this.dateTabs[0].data = data; - // // this.dateTabs[0].dataNum = data.length; - // // this.addToMap(data); - // this.roadOnMap(); - // }, async getRoadData() { - const res = await getRoadData({ dt: '2022-7-7 00:00:00' }); + const res = await getRoadData({ dt: this.preTime }); //路网数据 this.roadData = res.data.data; //道路事件 pm>200 diff --git a/src/views/pages/waterPoints/components/ComplaintEvent.vue b/src/views/pages/waterPoints/components/ComplaintEvent.vue index 5fa885f..5db200c 100644 --- a/src/views/pages/waterPoints/components/ComplaintEvent.vue +++ b/src/views/pages/waterPoints/components/ComplaintEvent.vue @@ -6,7 +6,7 @@
-
+
易积水点{{listAll.length || 0}}
@@ -355,8 +355,8 @@ export default { position: absolute; width: 128px; height: 128px; - background: url(../../../../assets/construction/rotateBgi.png) no-repeat; - animation: routation 20s linear infinite; + background: url(../../../../assets/waterPoints/rotateBgi.png) no-repeat; + // animation: routation 20s linear infinite; } .toady-list-icon { position: absolute; @@ -373,7 +373,7 @@ export default { height: 72px; top: 20px; left: 100px; - background: url(../../../../assets/construction/toadyListBgi2.png) + background: url(../../../../assets/waterPoints/toadyListBgi2.png) no-repeat; color: #fff; line-height: 72px;