From 39e6708f5a071125c6e9d68cb817a9c4bf183541 Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Tue, 5 Jul 2022 13:35:46 +0800 Subject: [PATCH] bug --- .../modules/visual/communityParty/gridParty.vue | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/views/modules/visual/communityParty/gridParty.vue b/src/views/modules/visual/communityParty/gridParty.vue index 65d0919c..4ea08dbe 100644 --- a/src/views/modules/visual/communityParty/gridParty.vue +++ b/src/views/modules/visual/communityParty/gridParty.vue @@ -166,7 +166,7 @@ export default { await this.loadOrgData() // this.loadMap() this.getMapData() - await this.getWorkUserInfo() + // await this.getWorkUserInfo() // this.isfirstInit = false // 地图相关end }, @@ -458,6 +458,16 @@ export default { if (code === 0) { this.orgData = data + this.agencyInfo = data //之前获取用户信息的接口不用了。。。 + if (!this.agencyInfo.latitude) { + this.agencyInfo.latitude = 36.072227 + } + if (!this.agencyInfo.longitude) { + this.agencyInfo.longitude = 120.389455 + } + if (!this.agencyInfo.level) { + this.agencyInfo.level = 'street' + } this.orgId = this.orgData.id this.orgType = this.orgData.level this.parentPolygon = []