Browse Source

优化

shibei_master
zhaoyongnian 3 years ago
parent
commit
28d0e46296
  1. 20
      src/views/modules/visual/communityParty/gridParty.vue

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

@ -496,25 +496,25 @@ export default {
}, },
// //
getMapData () { async getMapData () {
const url = '/epmetuser/icVolunteerPoly/mapData' const url = "/epmetuser/icVolunteerPoly/mapData"
let params = { let params = {
agencyId: this.agencyId, agencyId: this.agencyId,
code: this.eduCode code: this.eduCode
} }
window.app.ajax.post( const { data, code, internalMsg } = await requestPost(url, params)
url, if (code === 0) {
params,
(data, rspMsg) => {
this.unitMapList = data this.unitMapList = data
this.loadMap() this.loadMap()
this.isfirstInit = false this.isfirstInit = false
this.$refs.map.handleClosePopup() this.$refs.map.handleClosePopup()
}, } else {
(rspMsg, data) => { this.$message.error(internalMsg)
this.$message.error(rspMsg) this.unitMapList = []
this.loadMap()
this.isfirstInit = false
this.$refs.map.handleClosePopup()
} }
)
}, },
// //
async clickProject (feature) { async clickProject (feature) {

Loading…
Cancel
Save