|
@ -149,7 +149,6 @@ export default { |
|
|
async mounted() { |
|
|
async mounted() { |
|
|
await nextTick(100); |
|
|
await nextTick(100); |
|
|
// await this.getAgencyList() |
|
|
// await this.getAgencyList() |
|
|
await this.getWorkUserInfo() |
|
|
|
|
|
this.agencyId = this.$store.state.user.agencyId |
|
|
this.agencyId = this.$store.state.user.agencyId |
|
|
this.getEduCount(this.$store.state.user.agencyId) // 饼状统计图 |
|
|
this.getEduCount(this.$store.state.user.agencyId) // 饼状统计图 |
|
|
this.getEduList() // 左下角列表数据 |
|
|
this.getEduList() // 左下角列表数据 |
|
@ -167,6 +166,7 @@ export default { |
|
|
await this.loadOrgData() |
|
|
await this.loadOrgData() |
|
|
// this.loadMap() |
|
|
// this.loadMap() |
|
|
this.getMapData() |
|
|
this.getMapData() |
|
|
|
|
|
await this.getWorkUserInfo() |
|
|
// this.isfirstInit = false |
|
|
// this.isfirstInit = false |
|
|
// 地图相关end |
|
|
// 地图相关end |
|
|
}, |
|
|
}, |
|
@ -483,16 +483,25 @@ export default { |
|
|
params, |
|
|
params, |
|
|
(data, rspMsg) => { |
|
|
(data, rspMsg) => { |
|
|
this.agencyInfo = data |
|
|
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 |
|
|
this.agencyInfo.latitude = 36.072227 |
|
|
} |
|
|
} |
|
|
if (!data.longitude) { |
|
|
if (!this.agencyInfo.longitude) { |
|
|
this.agencyInfo.longitude = 120.389455 |
|
|
this.agencyInfo.longitude = 120.389455 |
|
|
} |
|
|
} |
|
|
if (!data.level) { |
|
|
if (!this.orgData.level) { |
|
|
this.agencyInfo.level = 'street' |
|
|
this.agencyInfo.level = 'street' |
|
|
} |
|
|
} |
|
|
this.agencyInfo.agencyLevel = this.agencyInfo.level |
|
|
// this.agencyInfo.agencyLevel = this.agencyInfo.level |
|
|
}, |
|
|
}, |
|
|
(rspMsg, data) => { |
|
|
(rspMsg, data) => { |
|
|
this.$message.error(rspMsg) |
|
|
this.$message.error(rspMsg) |
|
|