| | |
| | | parentChannelId: this.$route.params.parentChannelId, |
| | | updateLooper: 0, //数据刷新轮训标志 |
| | | total: 0, |
| | | beforeUrl: "/videoList", |
| | | beforeUrl: "/deviceList", |
| | | isLoging: false, |
| | | autoList: false, |
| | | }; |
| | |
| | | // this.currentPage = parseInt(this.$route.params.page); |
| | | // this.count = parseInt(this.$route.params.count); |
| | | // if (this.parentChannelId == "" || this.parentChannelId == 0) { |
| | | // this.beforeUrl = "/videoList"; |
| | | // this.beforeUrl = "/deviceList"; |
| | | // } |
| | | }, |
| | | initBaiduMap() { |
| | |
| | | this.endTime = null; |
| | | } |
| | | let self = this; |
| | | this.$axios.get(`/api/positions/${this.deviceId}/history`, { |
| | | this.$axios.get(`/api/position/history/${this.deviceId}`, { |
| | | params: { |
| | | start: self.startTime, |
| | | end: self.endTime, |
| | |
| | | this.mapPointList = []; |
| | | this.mobilePositionList = []; |
| | | let self = this; |
| | | this.$axios.get(`/api/positions/${this.deviceId}/latest`) |
| | | this.$axios.get(`/api/position/latest/${this.deviceId}`) |
| | | .then(function (res) { |
| | | console.log(res.data); |
| | | self.total = res.data.length; |
| | |
| | | }, |
| | | subscribeMobilePosition: function() { |
| | | let self = this; |
| | | this.$axios.get(`/api/positions/${this.deviceId}/subscribe`, { |
| | | this.$axios.get(`/api/position/subscribe/${this.deviceId}`, { |
| | | params: { |
| | | expires: self.expired, |
| | | interval: self.interval, |
| | |
| | | }, |
| | | unSubscribeMobilePosition: function() { |
| | | let self = this; |
| | | this.$axios.get(`/api/positions/${this.deviceId}/subscribe`, { |
| | | this.$axios.get(`/api/position/subscribe/${this.deviceId}`, { |
| | | params: { |
| | | expires: 0, |
| | | interval: self.interval, |