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: '', data() { diff --git a/src/views/pages/construction/components/ComplaintEvent.vue b/src/views/pages/construction/components/ComplaintEvent.vue index 468be4d..5d1dd3e 100644 --- a/src/views/pages/construction/components/ComplaintEvent.vue +++ b/src/views/pages/construction/components/ComplaintEvent.vue @@ -7,7 +7,7 @@
-
今日事件 36
+
今日事件{{todayListNum || 0}}
@@ -61,7 +61,7 @@
-
+
{{item.projectName||''}} {{item.pushTime||''}} @@ -80,6 +80,7 @@ @current-change="pageChange" :total="total" :current-page.sync="currentPage" + :page-size = 5 >
@@ -121,6 +122,12 @@ export default { components: { StatisticalAnalysis, }, + props: { + todayListNum:{ + type: Number, + default: 0 + } + }, created() { const currentDate = new Date(); currentDate.setTime(currentDate.getTime()); @@ -128,7 +135,7 @@ export default { this.preTime = currentDate.getFullYear() + "-" + - (currentDate.getMonth() + 1) + + ((currentDate.getMonth() + 1) > 10 ? (currentDate.getMonth() + 1) : "0" + (currentDate.getMonth() + 1)) + "-" + currentDate.getDate() + " " + @@ -137,12 +144,26 @@ export default { mounted() { this.getRoadData() this.selectRoadData() + + + selectRaise({pageSize: 5,page: 1,}).then((res) => { + this.$parent.allListDataNum += res.data.data.sum; + }); + selectNoiceEvent({pageSize: 5,page: 1,}).then((res) => { + this.$parent.allListDataNum += res.data.data.sum; + }); + selectRoadData({pageSize: 5,page: 1,}).then((res) => { + this.$parent.allListDataNum += res.data.data.sum; + }); + + }, methods: { tabHandleClick(item) { this.tabsActiveName = item this.currentPage = 1 if(item == '视频感知'){ + this.filterButton.typeSelect = [] } if(item == '物联感知'){ @@ -250,6 +271,8 @@ export default { openRoadDialog(data) { console.log(data) + this.$parent.removeRoadCauseAnalysis() + this.$parent.hiMapFun.removeLayerByLayerName("roadPoint"); this.$parent.hiMap.mapObj.map.flyTo({ lat: data.lat, lng: data.lng }); let dataEvent = [{ latLng: { lat: data.lat, lng: data.lng }, @@ -262,7 +285,12 @@ export default { "roadPoint", createSiteRoadPop ); - } + + }, + + openSiteDialog(data) { + bus.$emit("openCauseAnalysis", data); + }, }, }; @@ -466,14 +494,14 @@ export default { // margin-top: 30px; width: 100%; // height: 625px; - height: 570px; + height: 644px; position: relative; .event-details { - margin-top: 10px; + margin-top: 12px; // margin-top: 18px; width: 100%; - max-height: 100px; + height: 110px; padding-right: 8px; background: linear-gradient(90deg, #173759 0, #133150 100%); cursor: pointer; diff --git a/src/views/pages/construction/components/SiteCameraPop.vue b/src/views/pages/construction/components/SiteCameraPop.vue new file mode 100644 index 0000000..4f2f831 --- /dev/null +++ b/src/views/pages/construction/components/SiteCameraPop.vue @@ -0,0 +1,518 @@ + + + + diff --git a/src/views/pages/construction/components/SiteList.vue b/src/views/pages/construction/components/SiteList.vue index 7f7913a..6666824 100644 --- a/src/views/pages/construction/components/SiteList.vue +++ b/src/views/pages/construction/components/SiteList.vue @@ -34,6 +34,7 @@ color: '#1ffefd', 'background-color': '#2b4b7a', }" + style="background: transparent" > diff --git a/src/views/pages/construction/components/SiteRoadPop.vue b/src/views/pages/construction/components/SiteRoadPop.vue index adc722d..326aac7 100644 --- a/src/views/pages/construction/components/SiteRoadPop.vue +++ b/src/views/pages/construction/components/SiteRoadPop.vue @@ -1,7 +1,8 @@