Browse Source

Merge branch 'feature/dev_party_mange' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into feature/dev_party_mange

shibei_master
13176889840 3 years ago
parent
commit
a0cd4d416e
  1. 49
      src/views/modules/visual/communityParty/gridParty.vue

49
src/views/modules/visual/communityParty/gridParty.vue

@ -365,6 +365,8 @@ export default {
const _arr = this.selectAgency[this.selectAgency.length - 1].split('-')
const orgType = _arr[1] !== 'grid' ? 'agency': 'grid'
this.pageNo = 1
this.pageSize = 10;
this.eduList = []
this.getEduList(isClick && _code || '')
this.getMapData(isClick && _code || '')
}
@ -496,25 +498,25 @@ export default {
},
//
getMapData () {
const url = '/epmetuser/icVolunteerPoly/mapData'
async getMapData () {
const url = "/epmetuser/icVolunteerPoly/mapData"
let params = {
agencyId: this.agencyId,
code: this.eduCode
}
window.app.ajax.post(
url,
params,
(data, rspMsg) => {
const { data, code, internalMsg } = await requestPost(url, params)
if (code === 0) {
this.unitMapList = data
this.loadMap()
this.isfirstInit = false
this.$refs.map.handleClosePopup()
},
(rspMsg, data) => {
this.$message.error(rspMsg)
}
)
} else {
this.$message.error(internalMsg)
this.unitMapList = []
this.loadMap()
this.isfirstInit = false
this.$refs.map.handleClosePopup()
}
},
//
async clickProject (feature) {
@ -522,31 +524,40 @@ export default {
const featureInfo = feature.values_.properties.info
this.userId = feature.values_.properties.info.id
let coordinate = [featureInfo.longitude, featureInfo.latitude]
let {name, gridName, houseName, mobile, idCard, gzdw, rhzk, icResiUser} = feature.values_.properties.info
name = name ? name : '--'
gridName = gridName ? gridName : '--'
houseName = houseName ? houseName : '--'
mobile = mobile ? mobile : '--'
idCard = idCard ? idCard : '--'
gzdw = gzdw ? gzdw : '--'
rhzk = rhzk ? rhzk : '--'
let showData = `
<div style='font-size:16px; color:#FFFFFF;'>个人信息</div>
<div style='font-size:12px; color:#FFFFFF;margin-top:10px'>姓名
<span>`+ feature.values_.properties.info.name + `</span>
<span>`+ name + `</span>
</div>
<div style='font-size:12px; color:#FFFFFF;margin-top:10px'>所属网格
<span>`+ feature.values_.properties.info.gridName + `</span>
<span>`+ gridName + `</span>
</div>
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>所属房屋
<span>`+ feature.values_.properties.info.houseName + `</span>
<span>`+ houseName + `</span>
</div>
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>手机号
<span>`+ feature.values_.properties.info.mobile + `</span>
<span>`+ mobile + `</span>
</div>
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>身份证号
<span>`+ feature.values_.properties.info.idCard + `</span>
<span>`+ idCard + `</span>
</div>
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>工作单位
<span>`+ feature.values_.properties.info.gzdw + `</span>
<span>`+ gzdw + `</span>
</div>
<div style='font-size:12px; color:#FFFFFF;margin-top:5px'>人户状况
<span>`+ feature.values_.properties.info.rhzk + `</span>
<span>`+ rhzk + `</span>
</div>
`
this.$refs.map.handleShowPopup(showData, coordinate, true)
const isShowMore = icResiUser ? true : false
this.$refs.map.handleShowPopup(showData, coordinate, isShowMore)
},
lookMore(e) {
this.userId = this.userId

Loading…
Cancel
Save