Commit e3581043 authored by 黄媛媛's avatar 黄媛媛

新增地图请求判断

parent f42727b2
......@@ -212,7 +212,6 @@
}, res => {
if(res.data.resultCode == 1) {
console.log(res.data.data)
this.datainfo=res.data.data;
this.filterText=this.datainfo.EmName;
let obj={};
......@@ -708,12 +707,17 @@
this.totalNum = 0
let that = this
this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/boundsearch' + url).then(res => {
this.personData.forEach(person => {
let item = res.data.entities.find(markers => markers.entity_name == person.entity_name)
if(item&&that.isShowAll==1) {
that.totalNum += 1
}
});
if(res.data.status==0){
this.personData.forEach(person => {
let item = res.data.entities.find(markers => markers.entity_name == person.entity_name)
if(item&&that.isShowAll==1) {
that.totalNum += 1
}
});
}else{
this.Error("请刷新重试!")
}
})
map.addEventListener("zoomend", function(evt) { //缩放地图
......
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