|
@ -166,7 +166,7 @@ export default { |
|
|
await this.loadOrgData() |
|
|
await this.loadOrgData() |
|
|
// this.loadMap() |
|
|
// this.loadMap() |
|
|
this.getMapData() |
|
|
this.getMapData() |
|
|
await this.getWorkUserInfo() |
|
|
// await this.getWorkUserInfo() |
|
|
// this.isfirstInit = false |
|
|
// this.isfirstInit = false |
|
|
// 地图相关end |
|
|
// 地图相关end |
|
|
}, |
|
|
}, |
|
@ -458,6 +458,16 @@ export default { |
|
|
if (code === 0) { |
|
|
if (code === 0) { |
|
|
|
|
|
|
|
|
this.orgData = data |
|
|
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.orgId = this.orgData.id |
|
|
this.orgType = this.orgData.level |
|
|
this.orgType = this.orgData.level |
|
|
this.parentPolygon = [] |
|
|
this.parentPolygon = [] |
|
|