Commit 661a9a28 authored by 周远喜's avatar 周远喜

地图修改

parent 240e35bc
......@@ -337,7 +337,7 @@ export default {
};
},
created() {
this.icon = new BMap.Icon("/images/map/train/1.png", new BMap.Size(19, 23));
// this.icon = new BMap.Icon("/images/map/train/1.png", new BMap.Size(19, 23));
},
methods: {
handler({ BMap, map }) {
......
......@@ -95,7 +95,14 @@
</div>
</bm-info-window>
</baidu-map>
<Drawer title="设备详情" width="300" :transfer="false" :inner="true" :mask="false" v-model="lidModal">
<Drawer
title="设备详情"
width="300"
:transfer="false"
:inner="true"
:mask="false"
v-model="lidModal"
>
<div>
<p>MAC :45678954345670987</p>
<p>编号:0001</p>
......@@ -103,7 +110,8 @@
<p>街道:迪拜大楼</p>
<p>财务状态:已设防</p>
<p class="red">状态:报警</p>
<p v-if="dot">经纬度:
<p v-if="dot">
经纬度:
<span>{{dot.point.lng}},{{dot.point.lat}}</span>
</p>
</div>
......@@ -136,7 +144,7 @@ export default {
data() {
return {
center: { lng: 0, lat: 0 },
dot:null,
dot: null,
lidModal: false,
marker: {
name: "北京",
......@@ -411,8 +419,8 @@ export default {
this.map.addOverlay(marker2); // 将标注添
marker2.addEventListener("click", (p) => {
this.lidModal = true;
this.dot=p;
console.warn("vvv",p)
this.dot = p;
console.warn("vvv", p);
});
},
addDot(color, u) {
......@@ -463,7 +471,7 @@ export default {
left: 0;
right: 0;
height: calc(100vh - 100px);
.ivu-drawer-header{
.ivu-drawer-header {
background: #f5f6fa;
}
.ad {
......@@ -486,12 +494,11 @@ export default {
margin-bottom: 0;
}
}
}
.menu {
position: absolute;
width: 240px;
top:80px;
top: 80px;
background: white;
border-radius: 8px;
bottom: 15px;
......@@ -499,6 +506,12 @@ export default {
z-index: 4;
border: 1px solid #ddd;
padding-top: 15px;
// .ivu-menu-light.ivu-menu-vertical {
// .ivu-menu-item-active {
// background: rgba(38, 128, 235, 1);
// color: white;
// }
// }
}
.legend {
position: absolute;
......
<template>
<div class="mane-b">
<Menu>
<Submenu name="1">
<template slot="title">
<Menu active-name="1">
<MenuItem name="1">
<Icon type="ios-paper" />功能导航
</template>
</Submenu>
</MenuItem>
<Submenu name="2">
<template slot="title">
<Icon type="ios-people" />设备列表
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment