From 945769f415db7f6c326b596b40c664282fb07eee Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 22 Apr 2021 18:48:23 +0800
Subject: [PATCH] 获取视频

---
 src/views/policeTracking/policeTracking.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/views/policeTracking/policeTracking.vue b/src/views/policeTracking/policeTracking.vue
index 52073f2..719f502 100644
--- a/src/views/policeTracking/policeTracking.vue
+++ b/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>

--
Gitblit v1.9.3