Commit 53ab5be5 authored by 华国豪's avatar 华国豪 🙄

1

parent 08a8508b
......@@ -19,11 +19,11 @@ export default {
};
},
methods: {
creatMap(){
creatMap(arr, type){
let _this = this
let data = this.baiduMapData;
//实例化,并设置最大最小缩放层级
const map = new BMap.Map("centerMpBaidu", {
let map = map = new BMap.Map("centerMpBaidu", {
minZoom: 3,
maxZoom: 20,
});
......@@ -54,7 +54,6 @@ export default {
//绑定事件,显示窗口
// marker.addEventListener("click", function(){
// _this.markerClick(point, item)
// // map.openInfoWindow(infoWindow,point);
// });
markerClusterers[item.type || 0].push(marker)
//添加点标注即添加覆盖物
......@@ -143,7 +142,7 @@ export default {
})
this.apipost('financestatistics_post_GetB2BBoardClientAddressList', {BranchId: RB_Branch_id, ProvinceName: ''}, r=>{
if (r.data.resultCode == 1) {
console.log(r.data.data)
let _this = this;
let data = r.data.data
data.ActivateList.map(x=>{
x.type = 0
......@@ -154,7 +153,7 @@ export default {
data.NotVisit.map(x=>{
x.type = 1
})
let baiduMapData = [...data.ActivateList, ...data.InActiveList, ...data.NotVisit]
let baiduMapData = [...data.ActivateList, ...data.InActiveList, ...data.NotVisit];
this.baiduMapData = baiduMapData
this.creatMap()
}
......
......@@ -75,12 +75,12 @@
</li>
<li style="float:right;padding-top:10px;color:#111111">{{$t('salesModule.JYETJ')}}{{datainfo.sumMoney}}</li>
<li>
<input
<!-- <input
type="button"
class="hollowFixedBtn"
:value="$t('ground.kehuditu')"
@click="getMap()"
>
> -->
<input
type="button"
class="hollowFixedBtn"
......
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