南昌市物联网技防平台-前端
zengh
2021-03-24 33c4e059eeb71de6f186bc4ee22e05bfd3bd5aeb
src/views/realTimePolice/real.vue
@@ -2,7 +2,7 @@
 * @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>
@@ -812,36 +812,53 @@
      };
      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
          }
        }
      }
@@ -859,6 +876,7 @@
          ...this.query,
        };
      }
      this.loading = true;
      getList(page.currentPage, page.pageSize, values).then((res) => {
        const data = res.data.data;
@@ -1100,8 +1118,9 @@
          }
        )
        .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) {
@@ -1187,7 +1206,7 @@
        .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;
@@ -1221,7 +1240,6 @@
        this.hls.destroy();
      }
    },
    // 历史视频打开关闭事件
    openOldVideoBox() {
      var dom = document.getElementById("real_old_video");
@@ -1292,8 +1310,7 @@
                param: {
                  PktType: "Talk",
                  accessToken: result.data.data.accessToken,
                  // deviceCode: form.channelNumber,
                  deviceCode: "001241945990",
                  deviceCode: this.form.serialNumber,
                },
              },
            })