|
@@ -5,11 +5,15 @@
|
|
|
<transition name='fade'>
|
|
|
<div class="map-tit" v-show="mapshow">
|
|
|
<div class="top-tit">
|
|
|
- <i class="iconfont sj-icon-jkzx"></i>
|
|
|
+ <i class="iconfont sj-icon-jkzx" @click="openTvwall"></i>
|
|
|
<span><img src="../assets/images/close.svg" @click="mapShow"/></span>
|
|
|
</div>
|
|
|
<div class="map-txt" v-html="bindPopupHtml">
|
|
|
</div>
|
|
|
+ <el-button size="mini" type="primary"
|
|
|
+ class="sj-icon-btn" @click="openTvwall"
|
|
|
+ >查看
|
|
|
+ </el-button>
|
|
|
<div id="super2"/>
|
|
|
</div>
|
|
|
</transition>
|
|
@@ -32,6 +36,9 @@ export default {
|
|
|
name: 'supermap-2.5d',
|
|
|
data() {
|
|
|
return {
|
|
|
+ openZt: false,
|
|
|
+ clickName:null,
|
|
|
+ parameter:null,
|
|
|
bindPopupHtml: null,
|
|
|
mapshow: false,
|
|
|
superMapRootUrl: null,
|
|
@@ -351,6 +358,14 @@ export default {
|
|
|
this.graphicsBoxEntity = []
|
|
|
}
|
|
|
},
|
|
|
+ openTvwall(){
|
|
|
+ this.mapshow = false;
|
|
|
+ if(this.openZt){
|
|
|
+ this.$emit('fatherMethod', this.dianshiqiang, this.longitude, this.latitude, this.userList);
|
|
|
+ }else{
|
|
|
+ this.$emit(this.clickName, this.parameter);
|
|
|
+ }
|
|
|
+ },
|
|
|
superMapInfo(index) {
|
|
|
getConfigKey('superMap.iServer').then(response => {
|
|
|
this.superMapRootUrl = response.msg;
|
|
@@ -701,6 +716,7 @@ export default {
|
|
|
that.queryParams.mapData = entity.pickResult[entity.layerID][0].feature.properties.SmUserID;
|
|
|
that.queryParams.mapName = entity.pickResult[entity.layerID][0].feature.properties.layer;
|
|
|
getDeviceList(that.queryParams).then(res => {
|
|
|
+ that.openZt = true;
|
|
|
const treeLabels = [{
|
|
|
"id": null,
|
|
|
"labelCode": "999",
|
|
@@ -787,8 +803,11 @@ export default {
|
|
|
let html = id._description;
|
|
|
clearInterval(that.timer)
|
|
|
if (html != undefined && html._value != null && html._value != '' && html != 'cgq') {
|
|
|
- that.bindPopupHtml = html
|
|
|
+ that.bindPopupHtml = html;
|
|
|
+ that.clickName=id._click;
|
|
|
+ that.parameter=id._parameter;
|
|
|
that.mapshow = true
|
|
|
+ that.openZt = false
|
|
|
} else if (html == 'cgq') {
|
|
|
that.timer = setInterval(function () {
|
|
|
var color = "green";
|
|
@@ -1029,4 +1048,13 @@ export default {
|
|
|
opacity: 0;
|
|
|
transform: translateY(-10rem);
|
|
|
}
|
|
|
+.map-tit{
|
|
|
+ .sj-icon-btn{
|
|
|
+ display: block;
|
|
|
+ margin: 10px auto 15px auto;
|
|
|
+ padding: 0px 16px;
|
|
|
+ font-size: 10px;
|
|
|
+ height: 1.7rem;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|