Browse Source

中心点

shibei_master
zhaoyongnian 3 years ago
parent
commit
046d078fe5
  1. 19
      src/views/modules/visual/communityParty/gridParty.vue

19
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)

Loading…
Cancel
Save