Skip to content

Commit a2945f9

Browse files
committed
feat(components): 百度地图
1 parent 66ab792 commit a2945f9

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

src/dgiot/components/DgiotBaiduMap/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
:average-center="averageCenter"
7777
>
7878
<bm-marker
79-
v-for="marker of markers"
80-
:key="marker"
79+
v-for="(marker, index) of markers"
80+
:key="index"
8181
:position="{ lng: marker.lng, lat: marker.lat }"
8282
/>
8383
</bml-marker-clusterer>

src/views/DeviceCloud/manage/devicelist.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@
182182
:bm-label="bmLabel"
183183
:label="mapLabel"
184184
:map-center="mapLabel.position"
185+
:markers="[mapLabel.position]"
185186
:nav-show="true"
186187
:scale-show="true"
187188
:scroll-wheel-zoom="true"

src/views/DeviceCloud/manage/devicesDetailLite.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<dgiot-baidu-map
1313
ref="map"
1414
:bmLabel="bmLabel"
15+
:markers="[mapLabel.position]"
1516
:label="mapLabel"
1617
:navShow="true"
1718
:scaleShow="true"

src/views/DeviceCloud/manage/editdevices.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
<dgiot-baidu-map
1313
ref="map"
1414
:bmLabel="bmLabel"
15+
:markers="[mapLabel.position]"
1516
:label="mapLabel"
1617
:navShow="true"
1718
:scaleShow="true"

src/views/DeviceCloud/manage/home_index.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,7 @@
803803
}
804804
},
805805
showAdddress(item) {
806+
console.log(item)
806807
this.editRow = item
807808
this.map.keyword = item?.address ? item.address : this.map.keyword
808809
this.form.address = item?.address ? item.address : this.form.keyword

0 commit comments

Comments
 (0)