|
|
@@ -54,7 +54,7 @@ |
|
|
|
<div>问题位置:</div> |
|
|
|
<div>{{childData.location}}</div> |
|
|
|
</div> |
|
|
|
<div id="reportMap" style="margin-left:152px;width: 300px;height: 220px;margin-top: 10px"></div> |
|
|
|
<div id="reportMap" style="margin-left:152px;width: 656px;height: 400px;margin-top: 10px"></div> |
|
|
|
<div class="dialog-item"> |
|
|
|
<div>问题图片:</div> |
|
|
|
<div> |
|
|
@@ -115,9 +115,9 @@ export default { |
|
|
|
initMap() { |
|
|
|
let me = this; |
|
|
|
this.map = new AMap.Map("reportMap", { |
|
|
|
zooms: [10, 18] |
|
|
|
zoom: 17, |
|
|
|
center: [118.750078, 31.983115], |
|
|
|
}); |
|
|
|
this.map.setCity("南京市"); |
|
|
|
this.map.on("complete", function() { |
|
|
|
if (me.childData.latitude && me.childData.longitude) { |
|
|
|
let point = new AMap.LngLat( |
|
|
@@ -139,7 +139,7 @@ export default { |
|
|
|
}); |
|
|
|
marker.setDraggable(true); |
|
|
|
marker.setMap(me.map); |
|
|
|
me.map.setZoomAndCenter(10, point); |
|
|
|
me.map.setZoomAndCenter(17,point); |
|
|
|
} |
|
|
|
}); |
|
|
|
}, |