fc890241 by 杨威

查询结果展示 数据报错

1 parent d6ec1003
...@@ -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({
......