From 23715f0314b852f7efc4ef02b8267f390274a9b5 Mon Sep 17 00:00:00 2001 From: gounaikang Date: Fri, 26 Aug 2022 19:35:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A7=AF=E6=B0=B4=E7=82=B9=E9=9C=80?= =?UTF-8?q?=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/area.js | 9 +++ src/api/waterPoints.js | 9 +++ .../area/components/ImportantAreaPop.vue | 21 +++++-- src/views/pages/area/index.vue | 5 ++ .../waterPoints/components/ComplaintEvent.vue | 55 ++++++++++++++----- .../waterPoints/components/VideoList.vue | 18 +++++- .../waterPoints/components/WaterPointPop.vue | 14 ++++- src/views/pages/waterPoints/index.vue | 8 ++- 8 files changed, 115 insertions(+), 24 deletions(-) diff --git a/src/api/area.js b/src/api/area.js index 719064c..824d4ec 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -98,4 +98,13 @@ export function selectLocalMonthArea(params) { }) } +// 弹窗--图片,周边监控 +export function selectByAreaImage(params) { + return request({ + url: 'api/project/keyArea/selectByAreaImage', + method: 'get', + params + }) +} + \ No newline at end of file diff --git a/src/api/waterPoints.js b/src/api/waterPoints.js index e46c4d1..3c7cff4 100644 --- a/src/api/waterPoints.js +++ b/src/api/waterPoints.js @@ -56,3 +56,12 @@ export function selectCountLevel(params) { params }) } + +// 查询交警上报数据 +export function selectWaterPoliceList(params) { + return request({ + url: 'api/project/water/selectWaterPoliceList', + method: 'get', + params + }) +} diff --git a/src/views/pages/area/components/ImportantAreaPop.vue b/src/views/pages/area/components/ImportantAreaPop.vue index 7df2bb8..da5ea70 100644 --- a/src/views/pages/area/components/ImportantAreaPop.vue +++ b/src/views/pages/area/components/ImportantAreaPop.vue @@ -67,13 +67,14 @@ -->
- + 暂无图片

周边监控

{ + let returnData = res.data.data + if (returnData.length) { + this.picUrl = returnData[0].picUrl + this.cameraData.push({ + cameraName: returnData[0].channelName, + channelCode: returnData[0].channelCode + }) + } + }) }, data() { return { @@ -147,6 +158,7 @@ export default { outer:[], }, chartData:{}, + picUrl: '' }; }, methods: { @@ -173,9 +185,10 @@ export default { } this.initCharts() }, - + openVideo(row){ + bus.$emit('openCurrentVideoWaterPoint',row.channelCode) + }, initCharts () { - console.log('this.chartData---', this.chartData) const option = { grid: { bottom: 34, diff --git a/src/views/pages/area/index.vue b/src/views/pages/area/index.vue index 2ef0f60..54969a5 100644 --- a/src/views/pages/area/index.vue +++ b/src/views/pages/area/index.vue @@ -167,6 +167,11 @@ export default { this.openVideo = true this.channelCode.unshift(channelCode) }) + bus.$off('openCurrentVideoWaterPoint') + bus.$on('openCurrentVideoWaterPoint', channelCode => { + this.openVideo = true + this.channelCode.unshift(channelCode) + }) // 根据经纬度查询半径内所有的工地 bus.$off("openCauseAnalysis"); bus.$on("openCauseAnalysis", (row) => { diff --git a/src/views/pages/waterPoints/components/ComplaintEvent.vue b/src/views/pages/waterPoints/components/ComplaintEvent.vue index 45783ee..007c5e0 100644 --- a/src/views/pages/waterPoints/components/ComplaintEvent.vue +++ b/src/views/pages/waterPoints/components/ComplaintEvent.vue @@ -37,14 +37,15 @@
-
+
{{item.waterPointName}} - {{item.waterPointDepth != null ? '水务局' : '水务集团'}} + {{item.waterPointDepth != null ? '水务局' : '水务集团'}} + 交警
-
+
{{ getDesc(item) }}
@@ -61,7 +62,7 @@