diff --git a/src/views/oneMap/components/ZHHM_JCFX.vue b/src/views/oneMap/components/ZHHM_JCFX.vue index 3b0a58d..6e2f666 100644 --- a/src/views/oneMap/components/ZHHM_JCFX.vue +++ b/src/views/oneMap/components/ZHHM_JCFX.vue @@ -10,13 +10,21 @@ -
内涝积水分析
+
内涝积水分析
内涝风险点
- +
@@ -73,7 +81,7 @@ -
关键管网分析
+
关键管网分析
{ + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + bus.emit('SetLayerShow', ['内涝易涝点', '内涝风险点']); +}; +//关键管网分析交互 +const pipeSupervisePoint = () => { + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + bus.emit('SetLayerShow', ['排水管网监测']); +}; watch( () => props.showPanel, () => { @@ -231,7 +263,17 @@ }, { immediate: true } ); - +//内涝点change事件 +const selectWaterloggingPoint = () => { + if (waterlogingPoint.value) { + let selectedPoint = riskList.value.filter(item => item.value == waterlogingPoint.value)[0]; + console.log('selectedPoint---', selectedPoint); + newfiberMapbox.map.easeTo({ + center: selectedPoint.lonlat.split(',').map(Number), + zoom: 15.5, + }); + } +}; // 日历点击获取相应日期 const getChangeDate = date => { console.log(date); @@ -393,6 +435,7 @@ line-height: 43px; box-sizing: border-box; padding-left: 35px; + cursor: pointer; } .titSmall { justify-content: space-between; diff --git a/src/views/oneMap/components/ZHHM_JCFX.vue b/src/views/oneMap/components/ZHHM_JCFX.vue index 3b0a58d..6e2f666 100644 --- a/src/views/oneMap/components/ZHHM_JCFX.vue +++ b/src/views/oneMap/components/ZHHM_JCFX.vue @@ -10,13 +10,21 @@
-
内涝积水分析
+
内涝积水分析
内涝风险点
- +
@@ -73,7 +81,7 @@ -
关键管网分析
+
关键管网分析
{ + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + bus.emit('SetLayerShow', ['内涝易涝点', '内涝风险点']); +}; +//关键管网分析交互 +const pipeSupervisePoint = () => { + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + bus.emit('SetLayerShow', ['排水管网监测']); +}; watch( () => props.showPanel, () => { @@ -231,7 +263,17 @@ }, { immediate: true } ); - +//内涝点change事件 +const selectWaterloggingPoint = () => { + if (waterlogingPoint.value) { + let selectedPoint = riskList.value.filter(item => item.value == waterlogingPoint.value)[0]; + console.log('selectedPoint---', selectedPoint); + newfiberMapbox.map.easeTo({ + center: selectedPoint.lonlat.split(',').map(Number), + zoom: 15.5, + }); + } +}; // 日历点击获取相应日期 const getChangeDate = date => { console.log(date); @@ -393,6 +435,7 @@ line-height: 43px; box-sizing: border-box; padding-left: 35px; + cursor: pointer; } .titSmall { justify-content: space-between; diff --git a/src/views/oneMap/components/ZHPS.vue b/src/views/oneMap/components/ZHPS.vue index 16606d8..807a20a 100644 --- a/src/views/oneMap/components/ZHPS.vue +++ b/src/views/oneMap/components/ZHPS.vue @@ -1,19 +1,31 @@ @@ -51,7 +63,11 @@ position: absolute; left: 10px; top: 70px; - background: linear-gradient(0deg, rgba(0, 93, 114, 0.8) 0%, rgba(0, 93, 114, 0.8) 100%); + background: linear-gradient( + 0deg, + rgba(0, 93, 114, 0.8) 0%, + rgba(0, 93, 114, 0.8) 100% + ); border-radius: 6px; border: 1px solid #47eef3; box-shadow: inset 0 0 5px 5px #47eef38a; @@ -62,7 +78,11 @@ position: absolute; right: 10px; top: 70px; - background: linear-gradient(0deg, rgba(0, 93, 114, 0.8) 0%, rgba(0, 93, 114, 0.8) 100%); + background: linear-gradient( + 0deg, + rgba(0, 93, 114, 0.8) 0%, + rgba(0, 93, 114, 0.8) 100% + ); border-radius: 6px; border: 1px solid #47eef3; box-shadow: inset 0 0 5px 5px #47eef38a; diff --git a/src/views/oneMap/components/ZHHM_JCFX.vue b/src/views/oneMap/components/ZHHM_JCFX.vue index 3b0a58d..6e2f666 100644 --- a/src/views/oneMap/components/ZHHM_JCFX.vue +++ b/src/views/oneMap/components/ZHHM_JCFX.vue @@ -10,13 +10,21 @@
-
内涝积水分析
+
内涝积水分析
内涝风险点
- +
@@ -73,7 +81,7 @@ -
关键管网分析
+
关键管网分析
{ + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + bus.emit('SetLayerShow', ['内涝易涝点', '内涝风险点']); +}; +//关键管网分析交互 +const pipeSupervisePoint = () => { + newfiberMapbox.map.easeTo({ + center: [109.488, 36.596], + zoom: 12, + pitch: 55, + }); + // 先清空 + bus.emit('clearAllLayer'); + bus.emit('SetLayerShow', ['排水管网监测']); +}; watch( () => props.showPanel, () => { @@ -231,7 +263,17 @@ }, { immediate: true } ); - +//内涝点change事件 +const selectWaterloggingPoint = () => { + if (waterlogingPoint.value) { + let selectedPoint = riskList.value.filter(item => item.value == waterlogingPoint.value)[0]; + console.log('selectedPoint---', selectedPoint); + newfiberMapbox.map.easeTo({ + center: selectedPoint.lonlat.split(',').map(Number), + zoom: 15.5, + }); + } +}; // 日历点击获取相应日期 const getChangeDate = date => { console.log(date); @@ -393,6 +435,7 @@ line-height: 43px; box-sizing: border-box; padding-left: 35px; + cursor: pointer; } .titSmall { justify-content: space-between; diff --git a/src/views/oneMap/components/ZHPS.vue b/src/views/oneMap/components/ZHPS.vue index 16606d8..807a20a 100644 --- a/src/views/oneMap/components/ZHPS.vue +++ b/src/views/oneMap/components/ZHPS.vue @@ -1,19 +1,31 @@ @@ -51,7 +63,11 @@ position: absolute; left: 10px; top: 70px; - background: linear-gradient(0deg, rgba(0, 93, 114, 0.8) 0%, rgba(0, 93, 114, 0.8) 100%); + background: linear-gradient( + 0deg, + rgba(0, 93, 114, 0.8) 0%, + rgba(0, 93, 114, 0.8) 100% + ); border-radius: 6px; border: 1px solid #47eef3; box-shadow: inset 0 0 5px 5px #47eef38a; @@ -62,7 +78,11 @@ position: absolute; right: 10px; top: 70px; - background: linear-gradient(0deg, rgba(0, 93, 114, 0.8) 0%, rgba(0, 93, 114, 0.8) 100%); + background: linear-gradient( + 0deg, + rgba(0, 93, 114, 0.8) 0%, + rgba(0, 93, 114, 0.8) 100% + ); border-radius: 6px; border: 1px solid #47eef3; box-shadow: inset 0 0 5px 5px #47eef38a; diff --git a/src/views/oneMap/index.vue b/src/views/oneMap/index.vue index cf2b416..2d4ce06 100644 --- a/src/views/oneMap/index.vue +++ b/src/views/oneMap/index.vue @@ -260,7 +260,7 @@ iocn: ZHPS, AC_icon: AC_ZHPS, id: 3, - Layers:[] + Layers:['雨水管网','污水管网'] }, { name: "智慧海绵",