| | |
| | | //this.$moment().format("YYYY-MM-DD HH:mm:ss") |
| | | ], |
| | | timer: null, |
| | | intervalTime: 5000, |
| | | colorArr: ['#F4DA40', '#0092BC', '#97D700', '#D0006F', '#D86018', '#653279', '#A45A2A', '#004B87', '#008C95', '#AA0061'], |
| | | searchStartTimeStamp: 0, |
| | | searchEndTimeStamp: 0, |
| | |
| | | mounted () { |
| | | this.searchData(); |
| | | this.getPanorama(); |
| | | this.timer = setInterval(() => { |
| | | this.searchData(); |
| | | }, 7000); |
| | | |
| | | }, |
| | | beforeDestroy () { |
| | | console.log('beforeDestroy') |
| | |
| | | // } |
| | | }, |
| | | searchData () { |
| | | if(!this.searchTime){ |
| | | this.$notify({ |
| | | type:'warning', |
| | | message:'请选择时间!' |
| | | }); |
| | | clearInterval(this.timer); |
| | | return; |
| | | } |
| | | let _this = this; |
| | | var param = { |
| | | page: 1, |
| | |
| | | }) |
| | | } |
| | | console.log(new Date().getTime(), _this.actObj) |
| | | _this.drawTracePath() |
| | | _this.drawTracePath(); |
| | | _this.timer = setTimeout(()=>{ |
| | | _this.searchData() |
| | | },_this.intervalTime) |
| | | }) |
| | | } |
| | | } |