Bug修改
parent
422b40366c
commit
21fc7b3c6f
|
|
@ -10,7 +10,19 @@
|
|||
<title>费县智慧林业防灭火平台</title>
|
||||
<style>
|
||||
.popup-container{
|
||||
text-align:left;
|
||||
text-align:left;
|
||||
max-width:400px;
|
||||
}
|
||||
.popup-item{
|
||||
word-wrap: break-word;
|
||||
overflow-wrap:break-word;
|
||||
|
||||
}
|
||||
|
||||
.marsBlackPanel-text{
|
||||
width:400px!important;
|
||||
word-wrap: break-word!important;
|
||||
white-space:normal!important;
|
||||
}
|
||||
</style>
|
||||
<!--第三方lib-->
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@
|
|||
class="tools-boxs"
|
||||
v-if="toolsShow && appTools['toolsbox'] && finishLoadMap"
|
||||
>
|
||||
<toolbox></toolbox>
|
||||
<toolbox @drawLable="drawLable"></toolbox>
|
||||
</div>
|
||||
|
||||
<!-- 线索合并 -->
|
||||
|
|
@ -226,7 +226,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- 右键点击设置 -->
|
||||
<div v-if="setVisibleShow && finishLoadMap">
|
||||
<div v-if="setVisibleShow">
|
||||
<rightclicksetting
|
||||
:type="rightType"
|
||||
:clickdata="setDatas"
|
||||
|
|
@ -548,6 +548,30 @@ export default {
|
|||
window.delFirePoint = this.delFirePoint;
|
||||
},
|
||||
methods: {
|
||||
drawLable(val){
|
||||
this.setDatas = {
|
||||
title: "",
|
||||
lng: val.lng,
|
||||
lat: val.lat,
|
||||
iconUrl: null,
|
||||
remark: "",
|
||||
};
|
||||
switch(val.type){
|
||||
case 1 :
|
||||
this.setDatas.iconUrl = "火点";
|
||||
break;
|
||||
case 2 :
|
||||
this.setDatas.iconUrl = "集合点";
|
||||
break;
|
||||
case 3 :
|
||||
this.setDatas.iconUrl = "消防车";
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
this.rightType = 3;
|
||||
this.setVisibleShow = true;
|
||||
},
|
||||
getTaskList() {},
|
||||
// 一件呼叫
|
||||
callUser() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="flex-1 flex ai-c jc-c">
|
||||
<img class="img" src="img/zcry.png" />
|
||||
</div>
|
||||
<div class="flex-1 flex column jc-c">
|
||||
<div class="flex-1 flex column jc-c" @click="callUser">
|
||||
<div class="titles">注册人员</div>
|
||||
<div class="span">{{ listDataInfo.allcount }}</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
</div> -->
|
||||
|
||||
<div class="draw-tools">
|
||||
<div class="draw-item" v-for="(item,index) in draws" :key="index" @click="drawEntity(item.type,item.img)">
|
||||
<div class="draw-item" v-for="(item,index) in draws" :key="index" @click="selectPosition(item.type,item.img)">
|
||||
<img :src="'/img/icon/'+item.icon+'.png'" width="80px" style="margin-top: calc( 50% - 30px);" alt="">
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -97,15 +97,15 @@
|
|||
{
|
||||
icon:"hzd",
|
||||
img:"/img/homeimg/1.png",
|
||||
type:"label"
|
||||
type:1
|
||||
}, {
|
||||
icon:"shuiyuandian",
|
||||
img:"/img/homeimg/2.png",
|
||||
type:"label"
|
||||
type:2
|
||||
}, {
|
||||
icon:"xiaofangche",
|
||||
img:"/img/homeimg/3.png",
|
||||
type:"label"
|
||||
type:3
|
||||
},
|
||||
],
|
||||
measure:null,
|
||||
|
|
@ -499,7 +499,19 @@
|
|||
clampToGround: true
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
selectPosition(type,img){
|
||||
let _this = this;
|
||||
window.globalmap.setCursor("crosshair")
|
||||
window.globalmap.once(mars3d.EventType.click, function (event) {
|
||||
|
||||
const cartesian = event.cartesian
|
||||
const point = mars3d.LngLatPoint.fromCartesian(cartesian)
|
||||
point.format()
|
||||
window.globalmap.setCursor("auto")
|
||||
_this.$emit("drawLable",{type:type,lng:point.lng,lat:point.lat})
|
||||
})
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue