From 28d0e46296f4a350d53ca1bcd6246ea8932fc8e9 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Fri, 27 May 2022 15:43:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visual/communityParty/gridParty.vue | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/modules/visual/communityParty/gridParty.vue b/src/views/modules/visual/communityParty/gridParty.vue index 226d0e43..a328b2c6 100644 --- a/src/views/modules/visual/communityParty/gridParty.vue +++ b/src/views/modules/visual/communityParty/gridParty.vue @@ -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) {