查询结果展示 数据报错
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -76,7 +76,7 @@ export default { | ... | @@ -76,7 +76,7 @@ export default { |
76 | }, | 76 | }, |
77 | mixins:[mapLayerManager,findTask], | 77 | mixins:[mapLayerManager,findTask], |
78 | mounted(){ | 78 | mounted(){ |
79 | var query = self.$route.query; | 79 | var query = this.$route.query; |
80 | if(query && JSON.stringify(query) != "{}"){ | 80 | if(query && JSON.stringify(query) != "{}"){ |
81 | //self.addGeoByBsm(query.bsm,query.type,self.viewId); | 81 | //self.addGeoByBsm(query.bsm,query.type,self.viewId); |
82 | if(query.type == 'zd'){ | 82 | if(query.type == 'zd'){ |
... | @@ -202,7 +202,7 @@ export default { | ... | @@ -202,7 +202,7 @@ export default { |
202 | delete feature.attributes[key] | 202 | delete feature.attributes[key] |
203 | } | 203 | } |
204 | } | 204 | } |
205 | layerResult.features.push(feature); | 205 | layerResult[0].features.push(feature); |
206 | }else{ | 206 | }else{ |
207 | if(layer){ | 207 | if(layer){ |
208 | this.resultLayers.push({ | 208 | this.resultLayers.push({ | ... | ... |
-
Please register or sign in to post a comment