소스 검색

问题管理地图修改

master
huxinglu 4 년 전
부모
커밋
a381536e40
2개의 변경된 파일12개의 추가작업 그리고 4개의 파일을 삭제
  1. +8
    -0
      src/App.vue
  2. +4
    -4
      src/views/problem/detailDialog.vue

+ 8
- 0
src/App.vue 파일 보기

@@ -172,4 +172,12 @@
overflow-y: auto;
}

.amap-logo{
display: none!important;
}

.amap-copyright{
display: none!important;
}

</style>

+ 4
- 4
src/views/problem/detailDialog.vue 파일 보기

@@ -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);
}
});
},

Loading…
취소
저장