|
@ -447,11 +447,11 @@ export default { |
|
|
//加载地图数据 |
|
|
//加载地图数据 |
|
|
loadMap () { |
|
|
loadMap () { |
|
|
if (this.isfirstInit) { |
|
|
if (this.isfirstInit) { |
|
|
this.agencyInfo.level = 'agency' |
|
|
// this.agencyInfo.level = 'agency' |
|
|
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray |
|
|
//mapInfo, polygonArray, polIconUrlArray, iconArrays, iconUrlArray |
|
|
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null) |
|
|
this.$refs.map.loadMap(this.agencyInfo, this.polygonList, null, this.distributionsList, this.iconUrlArray, null) |
|
|
} else { |
|
|
} else { |
|
|
this.$refs.map.refreshMap(this.polygonList, this.distributionsList) |
|
|
this.$refs.map.refreshMap(this.agencyInfo, this.polygonList, this.distributionsList) |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -613,6 +613,9 @@ export default { |
|
|
if (!this.agencyInfo.level) { |
|
|
if (!this.agencyInfo.level) { |
|
|
this.agencyInfo.level = 'street' |
|
|
this.agencyInfo.level = 'street' |
|
|
} |
|
|
} |
|
|
|
|
|
if (!this.agencyInfo.agencyLevel) { |
|
|
|
|
|
this.agencyInfo.agencyLevel = 'street' |
|
|
|
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.$message.error(msg); |
|
|
this.$message.error(msg); |
|
|
} |
|
|
} |
|
|