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

1

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