|
@@ -5,8 +5,8 @@
|
|
<transition name='fade'>
|
|
<transition name='fade'>
|
|
<div class="map-tit" v-show="mapshow">
|
|
<div class="map-tit" v-show="mapshow">
|
|
<div class="top-tit">
|
|
<div class="top-tit">
|
|
- <i class="iconfont sj-icon-jkzx"></i>
|
|
|
|
- <span><img src="../assets/images/close.svg" @click="mapShow" /></span>
|
|
|
|
|
|
+ <i class="iconfont sj-icon-jkzx" @click="openTvwall()"></i>
|
|
|
|
+ <span><img src="../assets/images/close.svg" @click="mapshow=false"/></span>
|
|
</div>
|
|
</div>
|
|
<div class="map-txt" v-html="bindPopupHtml">
|
|
<div class="map-txt" v-html="bindPopupHtml">
|
|
</div>
|
|
</div>
|
|
@@ -31,6 +31,10 @@
|
|
name: 'supermap-2.5d',
|
|
name: 'supermap-2.5d',
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ dianshiqiang:null,
|
|
|
|
+ longitude:null,
|
|
|
|
+ latitude:null,
|
|
|
|
+ userList:[],
|
|
bindPopupHtml: null,
|
|
bindPopupHtml: null,
|
|
mapshow: false,
|
|
mapshow: false,
|
|
superMapRootUrl: null,
|
|
superMapRootUrl: null,
|
|
@@ -727,18 +731,52 @@
|
|
]
|
|
]
|
|
})
|
|
})
|
|
}
|
|
}
|
|
- const dianshiqiang = [
|
|
|
|
|
|
+ that.dianshiqiang = [
|
|
{
|
|
{
|
|
"switchTab": "2",
|
|
"switchTab": "2",
|
|
"treeLabels": treeLabels,
|
|
"treeLabels": treeLabels,
|
|
"labelChannels": labelChannels
|
|
"labelChannels": labelChannels
|
|
}
|
|
}
|
|
]
|
|
]
|
|
- that.$emit('fatherMethod', dianshiqiang,res.data[0].longitude,res.data[0].latitude,res.data[0].userList);
|
|
|
|
|
|
+ that.longitude = res.data[0].longitude;
|
|
|
|
+ that.latitude = res.data[0].latitude;
|
|
|
|
+ that.userList = res.data[0].userList;
|
|
|
|
+ let html =
|
|
|
|
+ '<div class="map-tip">' +
|
|
|
|
+ "<span>" +
|
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
|
+ " <h4>名称:" + that.queryParams.name +
|
|
|
|
+ "</h4>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </span>";
|
|
|
|
+ for (let i in res.data[0].userList){
|
|
|
|
+ html += "<span>" +
|
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
|
+ " <h4>" +res.data[0].userList[i].position+":"+res.data[0].userList[i].name+"</h4>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </span>"+
|
|
|
|
+ "<span>" +
|
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
|
+ " <h4>电话:" + (res.data[0].userList[i].phone ? res.data[0].userList[i].phone : "")+"</h4>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </span>";
|
|
|
|
+ }
|
|
|
|
+ html += "</div>";
|
|
|
|
+ that.bindPopupHtml = html;
|
|
|
|
+ that.mapshow = true
|
|
});
|
|
});
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
|
|
+ openTvwall(){
|
|
|
|
+ this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
|
|
|
|
+ },
|
|
/**
|
|
/**
|
|
* 地图落点
|
|
* 地图落点
|
|
*/
|
|
*/
|