From 046d078fe58a7aeb39f5be097680074004464c7e Mon Sep 17 00:00:00 2001 From: zhaoyongnian <541231643@qq.com> Date: Wed, 15 Jun 2022 09:44:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BF=83=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visual/communityParty/gridParty.vue | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/views/modules/visual/communityParty/gridParty.vue b/src/views/modules/visual/communityParty/gridParty.vue index abf51860..34ceff04 100644 --- a/src/views/modules/visual/communityParty/gridParty.vue +++ b/src/views/modules/visual/communityParty/gridParty.vue @@ -149,7 +149,6 @@ export default { async mounted() { await nextTick(100); // await this.getAgencyList() - await this.getWorkUserInfo() this.agencyId = this.$store.state.user.agencyId this.getEduCount(this.$store.state.user.agencyId) // 饼状统计图 this.getEduList() // 左下角列表数据 @@ -167,6 +166,7 @@ export default { await this.loadOrgData() // this.loadMap() this.getMapData() + await this.getWorkUserInfo() // this.isfirstInit = false // 地图相关end }, @@ -483,16 +483,25 @@ export default { params, (data, rspMsg) => { this.agencyInfo = data - if (!data.latitude) { + if (this.orgData.longitude) { // 中心点不从当前登录用户里面取,从mapOrg接口里面取 + this.agencyInfo.longitude = this.orgData.longitude + } + if (this.orgData.latitude) { // 中心点不从当前登录用户里面取,从mapOrg接口里面取 + this.agencyInfo.latitude = this.orgData.latitude + } + if (this.orgData.level) { // 中心点不从当前登录用户里面取,从mapOrg接口里面取 + this.agencyInfo.agencyLevel = this.orgData.level + } + if (!this.orgData.latitude) { this.agencyInfo.latitude = 36.072227 } - if (!data.longitude) { + if (!this.agencyInfo.longitude) { this.agencyInfo.longitude = 120.389455 } - if (!data.level) { + if (!this.orgData.level) { this.agencyInfo.level = 'street' } - this.agencyInfo.agencyLevel = this.agencyInfo.level + // this.agencyInfo.agencyLevel = this.agencyInfo.level }, (rspMsg, data) => { this.$message.error(rspMsg)