|
|
@ -496,25 +496,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) { |
|
|
|