|
@@ -466,16 +466,23 @@ const reportForm = reactive({
|
|
});
|
|
});
|
|
const reportSeq = ref(0);
|
|
const reportSeq = ref(0);
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
- const map = new BMapGL.Map('map'); // 创建地图实例
|
|
|
|
- const point = new BMapGL.Point(118.879999, 32.016216); // 创建点坐标
|
|
|
|
- map.centerAndZoom(point, 14);
|
|
|
|
- map.enableScrollWheelZoom(true);
|
|
|
|
- bdmap.value = map;
|
|
|
|
- map.addEventListener('click', function (e) {
|
|
|
|
- const { lng, lat } = e.latlng;
|
|
|
|
- console.log(e.latlng);
|
|
|
|
- });
|
|
|
|
- showMarks();
|
|
|
|
|
|
+ try {
|
|
|
|
+ const map = new BMapGL.Map('map'); // 创建地图实例
|
|
|
|
+ const point = new BMapGL.Point(118.879999, 32.016216); // 创建点坐标
|
|
|
|
+ map.centerAndZoom(point, 14);
|
|
|
|
+ map.enableScrollWheelZoom(true);
|
|
|
|
+ bdmap.value = map;
|
|
|
|
+ map.addEventListener('click', function (e) {
|
|
|
|
+ const { lng, lat } = e.latlng;
|
|
|
|
+ console.log(e.latlng);
|
|
|
|
+ });
|
|
|
|
+ showMarks();
|
|
|
|
+
|
|
|
|
+ }catch (e) {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
getList();
|
|
getList();
|
|
getStat();
|
|
getStat();
|
|
});
|
|
});
|