Commit 66b6cd0b authored by 耿迪迪's avatar 耿迪迪

信息展示 gengdidi

parent 1ed7ce11
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<div class="top display-default"> <div class="top display-default">
<div class="left text">{{title}}</div> <div class="left text">{{title}}</div>
<div class="right text"> <div class="right text">
<img src="../../assets/images/closeBtn.png" alt="" /> <img src="../../assets/images/closeBtn.png" alt="" @click="map.clearInfoWindow()"/>
</div> </div>
</div> </div>
<!-- 设备信息 --> <!-- 设备信息 -->
...@@ -39,7 +39,8 @@ export default { ...@@ -39,7 +39,8 @@ export default {
props: { props: {
obj: { typs: Object }, obj: { typs: Object },
title: "", title: "",
data: {} data: {},
map: null
} }
}; };
</script> </script>
...@@ -67,6 +68,7 @@ export default { ...@@ -67,6 +68,7 @@ export default {
} }
.right { .right {
padding-right: 16px; padding-right: 16px;
cursor: pointer;
} }
} }
......
...@@ -180,7 +180,8 @@ class gaodeMap { ...@@ -180,7 +180,8 @@ class gaodeMap {
case DEVICE_TYPE.REGEULATORBOX: { case DEVICE_TYPE.REGEULATORBOX: {
const dom = createPop(markerInfoWindow,{ const dom = createPop(markerInfoWindow,{
title: "调压箱", title: "调压箱",
data: data data: data,
map:map
}); });
const html = dom.$el; const html = dom.$el;
dom.remove(); dom.remove();
...@@ -189,7 +190,8 @@ class gaodeMap { ...@@ -189,7 +190,8 @@ class gaodeMap {
case DEVICE_TYPE.VALUEWELL: { case DEVICE_TYPE.VALUEWELL: {
const dom = createPop(markerInfoWindow,{ const dom = createPop(markerInfoWindow,{
title: "阀门井", title: "阀门井",
data: data data: data,
map:map
}); });
const html = dom.$el; const html = dom.$el;
dom.remove(); dom.remove();
...@@ -198,7 +200,8 @@ class gaodeMap { ...@@ -198,7 +200,8 @@ class gaodeMap {
case DEVICE_TYPE.FLOWMETER: { case DEVICE_TYPE.FLOWMETER: {
const dom = createPop(markerInfoWindow,{ const dom = createPop(markerInfoWindow,{
title: "流量计", title: "流量计",
data: data data: data,
map:map
}); });
const html = dom.$el; const html = dom.$el;
dom.remove(); dom.remove();
......
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