Commit c877011d authored by zhengke's avatar zhengke

sd

parent 07391305
......@@ -182,6 +182,8 @@
getlistIndex:0,
FinalYingYan:true,
datainfo:{},
page_size:1000,
page_size2:5000,
}
},
beforeDestroy() {
......@@ -211,7 +213,6 @@
Id: id
}, res => {
if(res.data.resultCode == 1) {
this.datainfo=res.data.data;
this.filterText=this.datainfo.EmName;
let obj={};
......@@ -434,34 +435,15 @@
let url = this.keys + '&timeStamp=' + start_time
this.getlistIndex=1
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){
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)
if(that.getlistIndex*1000<res.data.total){
if(that.getlistIndex*100<res.data.total){
that.getlistIndex+=1;
that.getlistIndex=this.page_size/that.getlistIndex*100
that.getlistPage(url);
}
else{
......@@ -508,7 +490,7 @@
this.Point = []
},
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
if(xy != undefined) {
xy.forEach(x => {
......@@ -560,7 +542,6 @@
this.playIndex++
if(this.playIndex < this.playPoints.length) {
this.playGj(this.playIndex)
//window.setTimeout("playGj(" + this.playIndex+ ")", 50);
} 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