diff --git a/src/views/modules/visual/communityParty/gridParty.vue b/src/views/modules/visual/communityParty/gridParty.vue index 180fc938..bd73c11c 100644 --- a/src/views/modules/visual/communityParty/gridParty.vue +++ b/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 = `
个人信息
姓名: - `+ feature.values_.properties.info.name + ` + `+ name + `
所属网格: - `+ feature.values_.properties.info.gridName + ` + `+ gridName + `
所属房屋: - `+ feature.values_.properties.info.houseName + ` + `+ houseName + `
手机号: - `+ feature.values_.properties.info.mobile + ` + `+ mobile + `
身份证号: - `+ feature.values_.properties.info.idCard + ` + `+ idCard + `
工作单位: - `+ feature.values_.properties.info.gzdw + ` + `+ gzdw + `
人户状况: - `+ feature.values_.properties.info.rhzk + ` + `+ rhzk + `
` - 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