|
|
@ -436,7 +436,7 @@ const vueGis = { |
|
|
|
}); |
|
|
|
if (feature) { |
|
|
|
console.log(feature) |
|
|
|
_that.clickMapVolunteer(feature.values_.properties) |
|
|
|
_that.clickMapVolunteer(feature.values_.properties.info) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
@ -446,11 +446,45 @@ const vueGis = { |
|
|
|
//点击项目 |
|
|
|
async clickMapVolunteer (info) { |
|
|
|
|
|
|
|
|
|
|
|
if (!info.id) { |
|
|
|
return false |
|
|
|
} |
|
|
|
|
|
|
|
if (info.placeType === 'resi' || info.placeType === 'specil_resi') {//综合治理图层和公共服务图层中的失能人员、失智人员 |
|
|
|
this.loadResi(info) |
|
|
|
} |
|
|
|
if (info.placeType === 'public_service') {//公共服务图层 |
|
|
|
this.loadPublicService(info) |
|
|
|
} |
|
|
|
if (info.placeType === 'dangerous_chemicals') {//重点危化品企业 |
|
|
|
|
|
|
|
} |
|
|
|
if (info.placeType === 'event') {//难点痛点 |
|
|
|
|
|
|
|
} |
|
|
|
if (info.placeType === 'city_management') {//城市管理图层 |
|
|
|
|
|
|
|
} |
|
|
|
if (info.placeType === 'community_org') {//社区自组织 |
|
|
|
|
|
|
|
} |
|
|
|
if (info.placeType === 'superior_resource') {//优势资源 |
|
|
|
|
|
|
|
} |
|
|
|
if (info.placeType === '') {//群租房 |
|
|
|
|
|
|
|
} |
|
|
|
if (info.placeType === '') {//来自联建单位的机关直属部门 |
|
|
|
|
|
|
|
} |
|
|
|
if (info.placeType === '') {//来自企事业查询的 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
async loadResi (info) { |
|
|
|
const url = "/epmetuser/icresiuser/resi-brief/" + 'dd0bd55db0ca4b629c40bc914a08368e' |
|
|
|
// const url = "http://yapi.elinkservice.cn/mock/245/heart/icpartyunit/distribution" |
|
|
|
|
|
|
@ -460,9 +494,9 @@ const vueGis = { |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
let coordinate = [info.longitude, info.latitude] |
|
|
|
data.icUserName = data.icUserName ? data.icUserName : '--' |
|
|
|
data.gridName = data.gridName ? data.gridName : '--' |
|
|
|
data.villageName = data.villageName ? data.villageName : '--' |
|
|
|
data.icUserName = data.icUserName ? data.icUserName : '--' |
|
|
|
data.mobile = data.mobile ? data.mobile : '--' |
|
|
|
data.idCard = data.idCard ? data.idCard : '--' |
|
|
|
data.birthday = data.birthday ? data.birthday : '--' |
|
|
@ -478,7 +512,6 @@ const vueGis = { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (categoriesArray.length > 0) { |
|
|
|
data.categories = categoriesArray.join(',') |
|
|
|
} else { |
|
|
@ -529,6 +562,51 @@ const vueGis = { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async loadPublicService (info) { |
|
|
|
// const url = "/gov/org/icPublicService/detail" |
|
|
|
const url = "http://yapi.elinkservice.cn/mock/245/gov/org/icPublicService/detail" |
|
|
|
|
|
|
|
let params = { |
|
|
|
icPublicServiceId: info.id |
|
|
|
} |
|
|
|
|
|
|
|
const { data, code, msg } = await requestPost(url, params) |
|
|
|
|
|
|
|
if (code === 0) { |
|
|
|
let coordinate = [info.longitude, info.latitude] |
|
|
|
data.name = data.name ? data.name : '--' |
|
|
|
data.categoryName = data.categoryName ? data.categoryName : '--' |
|
|
|
data.areaCovered = data.areaCovered ? data.areaCovered + '平方公里' : '--' |
|
|
|
data.capacity = data.capacity ? data.capacity : '--' |
|
|
|
data.address = data.address ? data.address : '--' |
|
|
|
|
|
|
|
|
|
|
|
let showData = ` |
|
|
|
<div style='font-size:16px; color:#FFFFFF;'>场所信息</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:10px'>场所名称: |
|
|
|
<span>`+ data.name + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>场所分类: |
|
|
|
<span>`+ data.categoryName + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>占地面积: |
|
|
|
<span>`+ data.areaCovered + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>容纳人数: |
|
|
|
<span>`+ data.capacity + `</span> |
|
|
|
</div> |
|
|
|
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>地址: |
|
|
|
<span>`+ data.address + `</span> |
|
|
|
</div> |
|
|
|
` |
|
|
|
// console.log(showData) |
|
|
|
this.handleShowPopup(showData, coordinate, true) |
|
|
|
|
|
|
|
} else { |
|
|
|
this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
handleShowPopup (showData, coordinate, isShowMore) { |
|
|
|
if (isShowMore) { |
|
|
|
document.getElementById("popup-goMore").style.display = 'block' |
|
|
|