Commit aa80c4c8 authored by zhengke's avatar zhengke

x

parent 0517a2c8
...@@ -182,6 +182,7 @@ ...@@ -182,6 +182,7 @@
getlistIndex:0, getlistIndex:0,
FinalYingYan:true, FinalYingYan:true,
datainfo:{}, datainfo:{},
page_size100:100,
page_size:1000, page_size:1000,
page_size2:5000, page_size2:5000,
} }
...@@ -445,7 +446,7 @@ ...@@ -445,7 +446,7 @@
let that=this let that=this
this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/search' + url+'&page_index='+this.getlistIndex+'&page_size'+this.page_size).then(res => { this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/search' + url+'&page_index='+this.getlistIndex+'&page_size'+this.page_size).then(res => {
this.markersList=this.markersList.concat(res.data.entities) this.markersList=this.markersList.concat(res.data.entities)
if(that.getlistIndex*this.page_size<res.data.total){ if(that.getlistIndex*this.page_size100<res.data.total){
that.getlistIndex+=1; that.getlistIndex+=1;
that.getlistPage(url); that.getlistPage(url);
} }
...@@ -682,7 +683,7 @@ ...@@ -682,7 +683,7 @@
var  rightLng  =  bsne.lng; var  rightLng  =  bsne.lng;
let timestamp = new Date() let timestamp = new Date()
let start_time = timestamp.getTime() / 1000 let start_time = timestamp.getTime() / 1000
let url = this.keys + '&bounds=' + bottomLat + ',' + leftLng + ';' + topLat + ',' + rightLng + '&filter=&page_index=1&page_size=1000&timeStamp=' + start_time; let url = this.keys + '&bounds=' + bottomLat + ',' + leftLng + ';' + topLat + ',' + rightLng + '&filter=&page_index=1&page_size='+this.page_size+'&timeStamp=' + start_time;
this.totalNum = 0 this.totalNum = 0
let that = this let that = this
this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/boundsearch' + url).then(res => { this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/boundsearch' + url).then(res => {
...@@ -707,7 +708,7 @@ ...@@ -707,7 +708,7 @@
bottomLat  =  bssw.lat;      bottomLat  =  bssw.lat;     
leftLng  =  bssw.lng;      leftLng  =  bssw.lng;     
rightLng  =  bsne.lng; rightLng  =  bsne.lng;
let url = that.keys + '&bounds=' + bottomLat + ',' + leftLng + ';' + topLat + ',' + rightLng + '&filter=&page_index=1&page_size=1000&timeStamp=' + start_time; let url = that.keys + '&bounds=' + bottomLat + ',' + leftLng + ';' + topLat + ',' + rightLng + '&filter=&page_index=1&page_size='+this.page_size+'&timeStamp=' + start_time;
that.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/boundsearch' + url).then(res => { that.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/boundsearch' + url).then(res => {
that.totalNum = 0 that.totalNum = 0
if(res.data.entities) { if(res.data.entities) {
...@@ -730,7 +731,7 @@ ...@@ -730,7 +731,7 @@
bottomLat  =  bssw.lat;      bottomLat  =  bssw.lat;     
leftLng  =  bssw.lng;      leftLng  =  bssw.lng;     
rightLng  =  bsne.lng; rightLng  =  bsne.lng;
let url = that.keys + '&bounds=' + bottomLat + ',' + leftLng + ';' + topLat + ',' + rightLng + '&filter=&page_index=1&page_size=1000&timeStamp=' + start_time; let url = that.keys + '&bounds=' + bottomLat + ',' + leftLng + ';' + topLat + ',' + rightLng + '&filter=&page_index=1&page_size='+this.page_size+'&timeStamp=' + start_time;
that.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/boundsearch' + url).then(res => { that.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/boundsearch' + url).then(res => {
that.totalNum = 0 that.totalNum = 0
that.personData.forEach(person => { that.personData.forEach(person => {
......
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