| | |
| | | * @Author: Morpheus |
| | | * @Date: 2021-03-17 15:21:33 |
| | | * @Last Modified by: Morpheus |
| | | * @Last Modified time: 2021-03-20 16:47:06 |
| | | * @Last Modified time: 2021-03-22 11:52:42 |
| | | */ |
| | | <template> |
| | | <basic-container> |
| | |
| | | }; |
| | | |
| | | if ( |
| | | this.$router.query && |
| | | this.$router.query != null && |
| | | this.$router.query != "" |
| | | this.$route.query.waringType && |
| | | this.$route.query != undefined && |
| | | this.$route.query != null && |
| | | this.$route.query != "" |
| | | ) { |
| | | if (this.$router.query.status) { |
| | | this.activeClass = this.$router.query.status; |
| | | if ( |
| | | this.$route.query.status != undefined && |
| | | this.$route.query.status != null && |
| | | this.$route.query.status == "" |
| | | ) { |
| | | this.activeClass = this.$route.query.status; |
| | | this.page.currentPage = 1; |
| | | if (this.$router.query.status == 0) { |
| | | if (this.$route.query.status == 0) { |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.day.beginTime, |
| | | endTime: this.dateTime.day.endTime, |
| | | }; |
| | | } else if (this.$router.query.status == 1) { |
| | | } else if (this.$route.query.status == 1) { |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.week.beginTime, |
| | | endTime: this.dateTime.week.endTime, |
| | | }; |
| | | } else if (this.$router.query.status == 2) { |
| | | } else if (this.$route.query.status == 2) { |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.month.beginTime, |
| | | endTime: this.dateTime.month.endTime, |
| | | }; |
| | | } |
| | | } else { |
| | | this.activeClass = 0; |
| | | this.page.currentPage = 1; |
| | | params = { |
| | | waringType: this.$router.query.waringType, |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.dateTime.day.beginTime, |
| | | endTime: this.dateTime.day.endTime, |
| | | }; |
| | | } |
| | | |
| | | if(this.$route.query.startTime!=undefined && this.$route.query.startTime!=null && this.$route.query.startTime!=''){ |
| | | params = { |
| | | waringType: this.$route.query.waringType, |
| | | beginTime: this.$route.query.startTime, |
| | | endTime: this.$route.query.endTime |
| | | } |
| | | } |
| | | } |
| | | |
| | |
| | | ...this.query, |
| | | }; |
| | | } |
| | | |
| | | this.loading = true; |
| | | getList(page.currentPage, page.pageSize, values).then((res) => { |
| | | const data = res.data.data; |
| | |
| | | } |
| | | ) |
| | | .then(function () { |
| | | that.onLoad(that.page, that.query); |
| | | that.dialogTableVisible = false; |
| | | that.onLoad(that.page, that.query); |
| | | that.$router.push({ path: "/policeTracking/track", query: that.form }); |
| | | }); |
| | | }, |
| | | beginTimeOrEndTime(time) { |
| | |
| | | .then((res) => { |
| | | newAxios |
| | | .get( |
| | | `https://web.byisf.com:18000/GetPlayUrl?deviceCode=001241945990&chl=${this.form.channelNumber}` |
| | | `https://web.byisf.com:18000/GetPlayUrl?deviceCode=${this.form.serialNumber}&chl=${this.form.channelNumber}` |
| | | ) |
| | | .then((result) => { |
| | | this.videoSource = result.data.data.m3u8; |
| | |
| | | this.hls.destroy(); |
| | | } |
| | | }, |
| | | |
| | | // 历史视频打开关闭事件 |
| | | openOldVideoBox() { |
| | | var dom = document.getElementById("real_old_video"); |
| | |
| | | param: { |
| | | PktType: "Talk", |
| | | accessToken: result.data.data.accessToken, |
| | | // deviceCode: form.channelNumber, |
| | | deviceCode: "001241945990", |
| | | deviceCode: this.form.serialNumber, |
| | | }, |
| | | }, |
| | | }) |