Browse Source

五大图层

shibei_master
jiangyy 3 years ago
parent
commit
78c80a7d38
  1. 0
      src/assets/img/shuju/fiveLayer/lwh.png
  2. 0
      src/assets/img/shuju/fiveLayer/lyjlb.png
  3. 0
      src/assets/img/shuju/fiveLayer/other.png
  4. 0
      src/assets/img/shuju/fiveLayer/whdw.png
  5. 0
      src/assets/img/shuju/fiveLayer/yjdw.png
  6. 0
      src/assets/img/shuju/fiveLayer/zaxld.png
  7. 194
      src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

0
src/assets/img/shuju/fiveLayer/co_lwh.png → src/assets/img/shuju/fiveLayer/lwh.png

Before

Width:  |  Height:  |  Size: 640 B

After

Width:  |  Height:  |  Size: 640 B

0
src/assets/img/shuju/fiveLayer/co_lyjlb.png → src/assets/img/shuju/fiveLayer/lyjlb.png

Before

Width:  |  Height:  |  Size: 557 B

After

Width:  |  Height:  |  Size: 557 B

0
src/assets/img/shuju/fiveLayer/co_qt.png → src/assets/img/shuju/fiveLayer/other.png

Before

Width:  |  Height:  |  Size: 580 B

After

Width:  |  Height:  |  Size: 580 B

0
src/assets/img/shuju/fiveLayer/co_whdw.png → src/assets/img/shuju/fiveLayer/whdw.png

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 560 B

0
src/assets/img/shuju/fiveLayer/co_yjdw.png → src/assets/img/shuju/fiveLayer/yjdw.png

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

0
src/assets/img/shuju/fiveLayer/co_zaxld.png → src/assets/img/shuju/fiveLayer/zaxld.png

Before

Width:  |  Height:  |  Size: 563 B

After

Width:  |  Height:  |  Size: 563 B

194
src/views/modules/visual/communityGovern/fivelayers/mapIndex.vue

@ -2,19 +2,23 @@
<div style="position: relative"> <div style="position: relative">
<!-- 组织路由 --> <!-- 组织路由 -->
<div class="div_top"> <div class="div_top">
<div class="router_line"></div> <div class="router_line"></div>
<div class="div_router"> <div class="div_router">
<span class="router_parents" <div v-if="!showPeopleInfo">
v-for="(item,index) in runAgencyArray" <span class="router_child">五大图层</span>
@click="handleClickAgency(index)" </div>
:key="index">{{item.name}}<span class="arrow">></span></span> <div v-if="showPeopleInfo"> <span class="router_parents"
@click="handleClickRouter">五大图层<span class="arrow">></span></span>
<span class="router_child">{{orgData.name}}</span> <span class="router_child">个人档案</span>
</div>
</div> </div>
</div> </div>
<div class="div_content"> <div v-show="!showPeopleInfo"
class="div_content">
<div class="div_map" <div class="div_map"
id="map" id="map"
@ -146,6 +150,10 @@
<div class="popContentTitle">志愿者类别 <div class="popContentTitle">志愿者类别
<span>{{ selInfo.categories }}</span> <span>{{ selInfo.categories }}</span>
</div> </div>
<div class="div_resi_more">
<div @click="toPeople"
class="span_resi_more">更多</div>
</div>
</div> </div>
<div v-show="selPlaceType==='dangerous_chemicals'"> <div v-show="selPlaceType==='dangerous_chemicals'">
<div class="popTitle">企业信息</div> <div class="popTitle">企业信息</div>
@ -367,10 +375,12 @@
</div> </div>
</div> </div>
<a href="#"
id="popup-goMore"
class="popup-goMore">更多>>>></a>
</div> </div>
<people v-if="showPeopleInfo"
:uid="selUserId"
ref="ref_people"></people>
</div> </div>
</template> </template>
@ -399,6 +409,7 @@ import { requestPost } from "@/js/dai/request";
import cptTb from "@/views/modules/visual/cpts/tb"; import cptTb from "@/views/modules/visual/cpts/tb";
import cptCard from "@/views/modules/visual/cpts/card"; import cptCard from "@/views/modules/visual/cpts/card";
import ScreenLoading from "@/views/modules/visual/cpts/loading"; import ScreenLoading from "@/views/modules/visual/cpts/loading";
import People from "../../basicinfo/people";
var centerPointGlobal = [120.664619, 36.504963] var centerPointGlobal = [120.664619, 36.504963]
@ -521,8 +532,7 @@ const vueGis = {
// //
runNum: 0, runNum: 0,
runAgencyArray: [], routerArray: [],
selUserId: '',
center: [], center: [],
zoom: null, zoom: null,
parentPolygon: [], parentPolygon: [],
@ -599,17 +609,17 @@ const vueGis = {
'zhaoshizhaohuojingshenbing': require('../../../../../assets/img/shuju/fiveLayer/zhaoshizhaohuojingshenbing.png'), 'zhaoshizhaohuojingshenbing': require('../../../../../assets/img/shuju/fiveLayer/zhaoshizhaohuojingshenbing.png'),
'co_yjdw': require('../../../../../assets/img/shuju/fiveLayer/co_yjdw.png'), 'yjdw': require('../../../../../assets/img/shuju/fiveLayer/yjdw.png'),
'sr_gy': require('../../../../../assets/img/shuju/fiveLayer/sr_gy.png'), 'sr_gy': require('../../../../../assets/img/shuju/fiveLayer/sr_gy.png'),
'sr_gc': require('../../../../../assets/img/shuju/fiveLayer/sr_gc.png'), 'sr_gc': require('../../../../../assets/img/shuju/fiveLayer/sr_gc.png'),
'co_whdw': require('../../../../../assets/img/shuju/fiveLayer/co_whdw.png'), 'whdw': require('../../../../../assets/img/shuju/fiveLayer/whdw.png'),
'sr_ggld': require('../../../../../assets/img/shuju/fiveLayer/sr_ggld.png'), 'sr_ggld': require('../../../../../assets/img/shuju/fiveLayer/sr_ggld.png'),
'co_lwh': require('../../../../../assets/img/shuju/fiveLayer/co_lwh.png'), 'lwh': require('../../../../../assets/img/shuju/fiveLayer/lwh.png'),
'sr_tyc': require('../../../../../assets/img/shuju/fiveLayer/sr_tyc.png'), 'sr_tyc': require('../../../../../assets/img/shuju/fiveLayer/sr_tyc.png'),
'co_lyjlb': require('../../../../../assets/img/shuju/fiveLayer/co_lyjlb.png'), 'lyjlb': require('../../../../../assets/img/shuju/fiveLayer/lyjlb.png'),
'sr_yjy': require('../../../../../assets/img/shuju/fiveLayer/sr_yjy.png'), 'sr_yjy': require('../../../../../assets/img/shuju/fiveLayer/sr_yjy.png'),
'co_zaxld': require('../../../../../assets/img/shuju/fiveLayer/co_zaxld.png'), 'zaxld': require('../../../../../assets/img/shuju/fiveLayer/zaxld.png'),
'co_qt': require('../../../../../assets/img/shuju/fiveLayer/co_qt.png'), 'other': require('../../../../../assets/img/shuju/fiveLayer/other.png'),
'sr_jzz': require('../../../../../assets/img/shuju/fiveLayer/sr_jzz.png'), 'sr_jzz': require('../../../../../assets/img/shuju/fiveLayer/sr_jzz.png'),
'sr_djc': require('../../../../../assets/img/shuju/fiveLayer/sr_djc.png'), 'sr_djc': require('../../../../../assets/img/shuju/fiveLayer/sr_djc.png'),
'sr_rfqck': require('../../../../../assets/img/shuju/fiveLayer/sr_rfqck.png'), 'sr_rfqck': require('../../../../../assets/img/shuju/fiveLayer/sr_rfqck.png'),
@ -652,7 +662,9 @@ const vueGis = {
showPopup: false, showPopup: false,
selPlaceType: '', selPlaceType: '',
selInfo: {} selInfo: {},
selUserId: '',
showPeopleInfo: false
} }
}, },
@ -691,13 +703,17 @@ const vueGis = {
}, },
methods: { methods: {
toPeople () {
this.showPeopleInfo = true
},
// //
addOverlay () { addOverlay () {
// 使 DOM // 使 DOM
var container = document.getElementById("popup"); var container = document.getElementById("popup");
var closer = document.getElementById("popup-closer"); var closer = document.getElementById("popup-closer");
var content = document.getElementById("popup-content"); var content = document.getElementById("popup-content");
var goMore = document.getElementById("popup-goMore") ? document.getElementById("popup-goMore") : null
// Overlay // Overlay
this.overlay = new Overlay({ this.overlay = new Overlay({
@ -720,11 +736,7 @@ const vueGis = {
closer.blur(); closer.blur();
return false; return false;
}; };
if (goMore) {
goMore.onclick = function () {
_that.$emit('lookMore')
};
}
}, },
// //
@ -753,6 +765,8 @@ const vueGis = {
} }
this.selPlaceType = info.placeType this.selPlaceType = info.placeType
if (info.placeType === 'resi' || info.placeType === 'specil_resi') {// if (info.placeType === 'resi' || info.placeType === 'specil_resi') {//
info.id = "dd0bd55db0ca4b629c40bc914a08368e"
this.selUserId = info.id
this.loadResi(info) this.loadResi(info)
} }
if (info.placeType === 'public_service') {// if (info.placeType === 'public_service') {//
@ -788,7 +802,7 @@ const vueGis = {
}, },
async loadResi (info) { async loadResi (info) {
const url = "/epmetuser/icresiuser/resi-brief/" + 'dd0bd55db0ca4b629c40bc914a08368e' const url = "/epmetuser/icresiuser/resi-brief/" + info.id
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/distribution" // const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/distribution"
let params = {} let params = {}
@ -822,7 +836,7 @@ const vueGis = {
} }
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate, true) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
@ -850,7 +864,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate, false) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
@ -869,7 +883,7 @@ const vueGis = {
let coordinate = [info.longitude, info.latitude] let coordinate = [info.longitude, info.latitude]
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate, false) this.handleShowPopup(coordinate)
@ -902,7 +916,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate, false) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
@ -930,7 +944,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate, false) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
@ -958,7 +972,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate, false) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
@ -986,7 +1000,7 @@ const vueGis = {
this.selInfo = JSON.parse(JSON.stringify(data)) this.selInfo = JSON.parse(JSON.stringify(data))
this.handleShowPopup(coordinate, false) this.handleShowPopup(coordinate)
} else { } else {
this.$message.error(msg) this.$message.error(msg)
@ -1048,12 +1062,8 @@ const vueGis = {
}, },
handleShowPopup (coordinate, isShowMore) { handleShowPopup (coordinate) {
if (isShowMore) {
document.getElementById("popup-goMore").style.display = 'block'
} else {
document.getElementById("popup-goMore").style.display = 'none'
}
// console.log(this.overlay.getElement()) // console.log(this.overlay.getElement())
let content = document.getElementById("popup-content"); let content = document.getElementById("popup-content");
this.overlay.getElement().style.display = 'block' this.overlay.getElement().style.display = 'block'
@ -1270,40 +1280,40 @@ const vueGis = {
if (code === 0) { if (code === 0) {
this.iconArrays = data.list this.iconArrays = data.list
// this.iconArrays = [ this.iconArrays = [
// { {
// categoryKey: "resi_xfry", categoryKey: "resi_xfry",
// content: "访", content: "信访人员",
// id: "123", id: "123",
// latitude: "36.082230", latitude: "36.082230",
// longitude: "120.3868167667315", longitude: "120.3868167667315",
// placeType: 'resi' placeType: 'resi'
// }, },
// { {
// categoryKey: "sr_gy", categoryKey: "sr_gy",
// content: "", content: "公园",
// id: "123", id: "123",
// latitude: "36.062227", latitude: "36.062227",
// longitude: "120.389455", longitude: "120.389455",
// placeType: 'public_service' placeType: 'public_service'
// }, },
// { {
// categoryKey: "ep_scjgqy", categoryKey: "ep_scjgqy",
// content: "", content: "生产加工企业",
// id: "123", id: "123",
// latitude: "36.072214", latitude: "36.072214",
// longitude: "120.389455", longitude: "120.389455",
// placeType: 'dangerous_chemicals' placeType: 'dangerous_chemicals'
// }, },
// { {
// categoryKey: "ps_wss", categoryKey: "ps_wss",
// content: "", content: "卫生所(室)",
// id: "123", id: "123",
// latitude: "36.07394505338441", latitude: "36.07394505338441",
// longitude: "120.3868167667315", longitude: "120.3868167667315",
// placeType: 'city_management' placeType: 'city_management'
// } }
// ] ]
this.iconArrays.forEach((item, index) => { this.iconArrays.forEach((item, index) => {
item.url = this.iconUrlArray[item.categoryKey] item.url = this.iconUrlArray[item.categoryKey]
@ -1438,26 +1448,10 @@ const vueGis = {
}, },
// //
handleClickAgency (index) { handleClickRouter (index) {
const cutNum = this.runAgencyArray.length - index//
this.runNum = this.runNum - cutNum
this.orgData = this.runAgencyArray[index] this.showPeopleInfo = false
for (let i = 0; i < cutNum; i++) {
this.runAgencyArray.pop()
}
this.orgId = this.orgData.id
this.orgLevel = this.orgData.level
this.center = this.orgData.center
this.zoom = this.orgData.zoom
this.$nextTick(() => {
this.refreshMap(true)
this.$forceUpdate()
});
}, },
@ -1865,7 +1859,7 @@ const vueGis = {
...mapGetters(["clientHeight"]) ...mapGetters(["clientHeight"])
}, },
components: { cptTb, cptCard, ScreenLoading }, components: { cptTb, cptCard, ScreenLoading, People },
} }
export default vueGis; export default vueGis;
</script> </script>
@ -1899,6 +1893,20 @@ export default vueGis;
color: #ffffff; color: #ffffff;
margin-top: 5px; margin-top: 5px;
} }
.div_resi_more {
display: flex;
justify-content: center;
margin-top: 20px;
}
.span_resi_more {
font-size: 16px;
text-decoration: underline;
}
.span_resi_more:hover {
cursor: pointer;
}
</style> </style>
<style lang="scss" > <style lang="scss" >
@ -1967,9 +1975,7 @@ export default vueGis;
.popup-content { .popup-content {
width: 300px; width: 300px;
} }
.popup-goMore {
margin: 20px 0;
}
.ol-popup-closer:after { .ol-popup-closer:after {
content: "✖"; content: "✖";
// color: rgba(1, 17, 104, 1); // color: rgba(1, 17, 104, 1);

Loading…
Cancel
Save