diff --git a/src/api/area.js b/src/api/area.js new file mode 100644 index 0000000..34a969a --- /dev/null +++ b/src/api/area.js @@ -0,0 +1,10 @@ +import request from '@/utils/request' + +export function selectKeyAreaList(params) { + return request({ + url: 'api/project/keyArea/selectKeyAreaList', + method: 'get', + params + }) + } + \ No newline at end of file diff --git a/src/api/waterPoints.js b/src/api/waterPoints.js index 060b5d6..e46c4d1 100644 --- a/src/api/waterPoints.js +++ b/src/api/waterPoints.js @@ -24,3 +24,35 @@ export function selectCameraByName(params) { params }) } + +export function selectReportOrigin(params) { + return request({ + url: 'api/project/water/selectReportOrigin', + method: 'get', + params + }) +} + +export function selectCountWater(params) { + return request({ + url: 'api/project/water/selectCountWater', + method: 'get', + params + }) +} + +export function selectCountWaters(params) { + return request({ + url: 'api/project/water/selectCountWaters', + method: 'get', + params + }) +} + +export function selectCountLevel(params) { + return request({ + url: 'api/project/water/selectCountLevel', + method: 'get', + params + }) +} diff --git a/src/router/index.js b/src/router/index.js index 83a695d..3b764b5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -95,6 +95,11 @@ export const pageRoutes = [{ name: 'construction', meta: { title: '在建工地综合监管平台' } }, +{ path: '/area', + component: () => import('@/views/pages/area'), + name: 'area', + meta: { title: '重点区域监控平台' } +}, { path: '/point', component: () => import('@/views/pages/civilizedCity/components/Point'), name: 'point', diff --git a/src/supermap/image/waterPoint1.png b/src/supermap/image/waterPoint1.png new file mode 100644 index 0000000..3b46b4f Binary files /dev/null and b/src/supermap/image/waterPoint1.png differ diff --git a/src/supermap/image/waterPoint.png b/src/supermap/image/waterPoint2.png similarity index 100% rename from src/supermap/image/waterPoint.png rename to src/supermap/image/waterPoint2.png diff --git a/src/supermap/image/waterPoint3.png b/src/supermap/image/waterPoint3.png new file mode 100644 index 0000000..fd8431f Binary files /dev/null and b/src/supermap/image/waterPoint3.png differ diff --git a/src/supermap/map-showResource.js b/src/supermap/map-showResource.js index fdbe743..62aed18 100644 --- a/src/supermap/map-showResource.js +++ b/src/supermap/map-showResource.js @@ -564,7 +564,7 @@ function addPointsToMap (features, url, lastOne, createPopupFun, DS, featureGrou // layers = createMarkerClusterLayer(defaultStyle) const icon = createDefaultFeatureStyle({ img: url || 'the-head.png', - iconSize: url == ('construction.png'||url == 'waterPoint.png')?[37,49]:[36, 36], + iconSize: url == ('construction.png'||url == 'waterPoint2.png'||url == 'waterPoint1.png'||url == 'waterPoint3.png')?[37,49]:[36, 36], }) const arr = [] features.map((feature, index) => { @@ -583,14 +583,14 @@ function addPointsToMap (features, url, lastOne, createPopupFun, DS, featureGrou const elementHtml = createPopupFun(feature) if (elementHtml) { if(feature.type=='road'){ - L.popup({ className: 'roadGovernance-popup', keepInView: true,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) + 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: true,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) + L.popup({ className: 'site-popup', keepInView: false,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) } else if(feature.type=='waterPoint'){ - L.popup({ className: 'water-point-pop', keepInView: true,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) + L.popup({ className: 'water-point-pop', keepInView: false,}).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) } else{ - L.popup({ className: 'epidemic-address', keepInView: true, maxHeight: 300 }).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) + L.popup({ className: 'epidemic-address', keepInView: false, maxHeight: 300 }).setLatLng(feature.latLng).setContent(elementHtml).openOn(map) } } }) diff --git a/src/views/pages/area/components/ComplaintEvent.vue b/src/views/pages/area/components/ComplaintEvent.vue new file mode 100644 index 0000000..dee213d --- /dev/null +++ b/src/views/pages/area/components/ComplaintEvent.vue @@ -0,0 +1,521 @@ + + + diff --git a/src/views/pages/area/components/SiteList.vue b/src/views/pages/area/components/SiteList.vue new file mode 100644 index 0000000..77819d7 --- /dev/null +++ b/src/views/pages/area/components/SiteList.vue @@ -0,0 +1,334 @@ + + + diff --git a/src/views/pages/area/components/SiteListPop.vue b/src/views/pages/area/components/SiteListPop.vue new file mode 100644 index 0000000..fc240af --- /dev/null +++ b/src/views/pages/area/components/SiteListPop.vue @@ -0,0 +1,478 @@ + + + + diff --git a/src/views/pages/area/components/StatisticalAnalysis.vue b/src/views/pages/area/components/StatisticalAnalysis.vue new file mode 100644 index 0000000..c7f4701 --- /dev/null +++ b/src/views/pages/area/components/StatisticalAnalysis.vue @@ -0,0 +1,706 @@ + + + + + diff --git a/src/views/pages/area/components/VideoList.vue b/src/views/pages/area/components/VideoList.vue new file mode 100644 index 0000000..087b26d --- /dev/null +++ b/src/views/pages/area/components/VideoList.vue @@ -0,0 +1,351 @@ + + + diff --git a/src/views/pages/area/components/tiledMap.vue b/src/views/pages/area/components/tiledMap.vue new file mode 100644 index 0000000..057f810 --- /dev/null +++ b/src/views/pages/area/components/tiledMap.vue @@ -0,0 +1,52 @@ + + + + \ No newline at end of file diff --git a/src/views/pages/area/index.vue b/src/views/pages/area/index.vue new file mode 100644 index 0000000..63561a9 --- /dev/null +++ b/src/views/pages/area/index.vue @@ -0,0 +1,534 @@ + + + + + diff --git a/src/views/pages/civilizedCity/index.vue b/src/views/pages/civilizedCity/index.vue index 0c6d96c..c164bb9 100644 --- a/src/views/pages/civilizedCity/index.vue +++ b/src/views/pages/civilizedCity/index.vue @@ -1128,9 +1128,9 @@ export default { }; selectByName(params).then((res) => { console.log(res); - res.data.data.sort(this.compare("captureTime", "inverted")); + res.data.data.events.sort(this.compare("captureTime", "inverted")); // console.log(res.data.data) - this.EventTypeData = res.data.data; + this.EventTypeData = res.data.data.events; }); } } diff --git a/src/views/pages/construction/components/VideoList.vue b/src/views/pages/construction/components/VideoList.vue index 7ab1954..087b26d 100644 --- a/src/views/pages/construction/components/VideoList.vue +++ b/src/views/pages/construction/components/VideoList.vue @@ -7,7 +7,7 @@ @click="tabHandleClick(item)" v-for="item in tabsButton" :key="item" - :class="tabsActiveName == item?'tabs-button-btn-active':''" + :class="tabsActiveName == item ? 'tabs-button-btn-active' : '' " > {{item}} @@ -42,14 +42,10 @@ @input="searchCameraTree" > - 全部 - 正常 - 异常 - 重置 - - {{data.checkStatus == 0 ? `(离线)`:''}}{{ data.name }} - + + + - - {{data.checkStatus == 0 ? `(离线)`:''}}{{ data.channelName }} - + + + @@ -91,10 +87,10 @@ export default { labelSearch:'', checkboxGroup: [], cameraAllData:[], - camreaTreeIsShow:true, - camreaTreeSingle: [], + cameraTreeIsShow:true, + cameraTreeSingle: [], checkStatus: '2', - camreaTree:[], + cameraTree:[], }; }, mounted() { @@ -106,9 +102,10 @@ export default { // this.addResourceTomap('cameraAll',res.data); }) getCameraAllOrgan({parentId:'S4NbecfYB1DBH8HNULGS34'}).then((res) => { - this.camreaTree = res.data.data + this.cameraTree = res.data.data + console.log(this.cameraTree) res.data.data.forEach((item) => { - this.camreaTreeSingle.push({ + this.cameraTreeSingle.push({ channelName: item.name, children: [] }) @@ -133,20 +130,20 @@ export default { // this.addResourceTomap(item.labelName,res.data.data); // res.data.data.forEach((item) => { - // this.camreaTreeSingle.forEach((val) => { + // this.cameraTreeSingle.forEach((val) => { // if(item.nodeName == val.channelName){ // val.children.push(item) // } // }) // }) - // this.camreaTreeIsShow = false; + // this.cameraTreeIsShow = false; }) }else { bus.$emit("removeCameraLayer",item.labelName) // this.checkStatus = "2" - // this.camreaTreeIsShow = true + // this.cameraTreeIsShow = true // getCameraAllOrgan({parentId:'S4NbecfYB1DBH8HNULGS34'}).then((res) => { - // this.camreaTree = res.data.data + // this.cameraTree = res.data.data // }) } }, @@ -166,9 +163,9 @@ export default { } selectByChannelName(params).then((res) => { console.log(res) - this.camreaTree = [] + this.cameraTree = [] res.data.data.forEach((item) => { - this.camreaTree.push({ + this.cameraTree.push({ name: item.channelName, gpsX: item.gpsX, gpsY: item.gpsY, @@ -179,16 +176,16 @@ export default { }) }else { getCameraAllOrgan({parentId:'S4NbecfYB1DBH8HNULGS34'}).then((res) => { - this.camreaTree = res.data.data + this.cameraTree = res.data.data }) } }, reset() { this.checkboxGroup = [] this.checkStatus = "2"; - this.camreaTreeIsShow = true + this.cameraTreeIsShow = true getCameraAllOrgan({parentId:'S4NbecfYB1DBH8HNULGS34'}).then((res) => { - this.camreaTree = res.data.data + this.cameraTree = res.data.data }) document.getElementById("tree").scrollTop = 0; }, diff --git a/src/views/pages/waterPoints/components/ComplaintEvent.vue b/src/views/pages/waterPoints/components/ComplaintEvent.vue index e2f2e01..5fa885f 100644 --- a/src/views/pages/waterPoints/components/ComplaintEvent.vue +++ b/src/views/pages/waterPoints/components/ComplaintEvent.vue @@ -7,7 +7,7 @@
-
易积水点{{list.length || 0}}
+
易积水点{{listAll.length || 0}}
@@ -17,9 +17,9 @@ @click="tabHandleClick(item)" v-for="item in tabsButton" :key="item.index" - :class="tabsActiveName == item?'tabs-button-btn-active':''" + :class="tabsActiveName == item.title ? 'tabs-button-btn-active' : '' " > - {{item}} + {{item.title}}
@@ -28,7 +28,7 @@
@@ -41,14 +41,16 @@
{{item.waterPointName}} - + {{reportOrigin(item.reportOrigin)}}
- - + + {{item.pointLevel=='traffic' ? '影响车辆(>30cm)' : item.pointLevel=='pedestrian' ? '影响行人(<30cm)' : '无积水(<10cm)' }}
-
+
+ +
@@ -57,7 +59,7 @@