南昌市物联网技防平台-前端
shuishen
2021-04-22 945769f415db7f6c326b596b40c664282fb07eee
获取视频
1 files modified
15 ■■■■ changed files
src/views/policeTracking/policeTracking.vue 15 ●●●● patch | view | raw | blame | history
src/views/policeTracking/policeTracking.vue
@@ -2,7 +2,7 @@
  <el-row>
    <el-col :span="12">
      <div style="background: #fff; height: 100%">
        <el-card class="trackClass" style="overflow-y: auto;">
        <el-card class="trackClass" style="overflow-y: auto">
          <div
            style="margin-top: 20px"
            role="tab"
@@ -517,7 +517,7 @@
<script>
import axios from "axios";
import { getclient } from "@/api/real/real";
export default {
  inject: ["reload"],
  data() {
@@ -600,6 +600,7 @@
    this.getList();
    this.getAudios();
    this.getImgAndVideo();
    this.getVideo();
    this.$refs.mapDiv.onload = () => {
      window.frames[0].init("AlertSecurity", {
        x: this.form.jd,
@@ -860,6 +861,16 @@
        this.feedbackVideo = resdata.data.data[0].sp[0];
      });
    },
    getVideo() {
      getclient(this.form.id).then((res) => {
        if (res.data.data.vaddress == "") {
          this.getVideo();
        } else {
          this.vaddress = res.data.data.vaddress;
        }
      });
    },
  },
};
</script>