Commit c877011d authored by zhengke's avatar zhengke

sd

parent 07391305
...@@ -182,6 +182,8 @@ ...@@ -182,6 +182,8 @@
getlistIndex:0, getlistIndex:0,
FinalYingYan:true, FinalYingYan:true,
datainfo:{}, datainfo:{},
page_size:1000,
page_size2:5000,
} }
}, },
beforeDestroy() { beforeDestroy() {
...@@ -211,7 +213,6 @@ ...@@ -211,7 +213,6 @@
Id: id Id: id
}, res => { }, res => {
if(res.data.resultCode == 1) { if(res.data.resultCode == 1) {
this.datainfo=res.data.data; this.datainfo=res.data.data;
this.filterText=this.datainfo.EmName; this.filterText=this.datainfo.EmName;
let obj={}; let obj={};
...@@ -434,34 +435,15 @@ ...@@ -434,34 +435,15 @@
let url = this.keys + '&timeStamp=' + start_time let url = this.keys + '&timeStamp=' + start_time
this.getlistIndex=1 this.getlistIndex=1
this.getlistPage(url) this.getlistPage(url)
// this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/entity/search' + url).then(res => {
// this.onlinePerson = 0
// this.markersList = res.data.entities
// this.personData.forEach(person => {
// let item = this.markersList.find(markers => markers.entity_name == person.entity_name)
// if(item) {
// let that = this
// if(that.getOnlineStatus(item.latest_location.loc_time) === 0) {
// this.onlineTypeList.push(person);
// this.onlinePerson += 1;
// } else {
// this.leaveLineTypeList.push(person)
// }
// } else {
// this.leaveLineTypeList.push(person)
// }
// });
//
// })
}, },
getlistPage(url){ getlistPage(url){
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).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*1000<res.data.total){ if(that.getlistIndex*100<res.data.total){
that.getlistIndex+=1; that.getlistIndex+=1;
that.getlistIndex=this.page_size/that.getlistIndex*100
that.getlistPage(url); that.getlistPage(url);
} }
else{ else{
...@@ -508,7 +490,7 @@ ...@@ -508,7 +490,7 @@
this.Point = [] this.Point = []
}, },
gettrackPage(url){ gettrackPage(url){
this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/track/gettrack' + url+'&page_index='+this.gettrackPageIndex).then(res => { this.$http.get('https://bird.ioliu.cn/v1?url=http://yingyan.baidu.com/api/v3/track/gettrack' + url+'&page_index='+this.gettrackPageIndex+'&page_size'+this.page_size2).then(res => {
let xy = res.data.points let xy = res.data.points
if(xy != undefined) { if(xy != undefined) {
xy.forEach(x => { xy.forEach(x => {
...@@ -560,7 +542,6 @@ ...@@ -560,7 +542,6 @@
this.playIndex++ this.playIndex++
if(this.playIndex < this.playPoints.length) { if(this.playIndex < this.playPoints.length) {
this.playGj(this.playIndex) this.playGj(this.playIndex)
//window.setTimeout("playGj(" + this.playIndex+ ")", 50);
} else { } else {
} }
}, },
......
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