From 9d792bbd1fa6ef7136dcca1cc2bd907dba9e6f57 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 03 Sep 2021 16:20:43 +0800
Subject: [PATCH] 视频相关更改

---
 src/views/map/carGps.vue |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/views/map/carGps.vue b/src/views/map/carGps.vue
index 4581d5c..65e3e29 100644
--- a/src/views/map/carGps.vue
+++ b/src/views/map/carGps.vue
@@ -2,7 +2,7 @@
  * @Author: Morpheus
  * @Date: 2021-07-05 16:31:54
  * @Last Modified by: Morpheus
- * @Last Modified time: 2021-08-14 10:57:44
+ * @Last Modified time: 2021-09-03 16:20:17
  * menu-name 押运人员定位
  */
 <template>
@@ -126,8 +126,10 @@
                        :modal='false'
                        :visible.sync="dialogVisible"
                        :before-close="dialogBeforeClose"
+                       :close-on-click-modal='false'
                        class="car-video-box">
                 <iframe src="/carVideo/parent.html"
+                        ref="videoIframe"
                         frameborder="0"></iframe>
             </el-dialog>
         </el-col>
@@ -303,9 +305,18 @@
 
                 if (cont != undefined) {
                     that.dialogVisible = true
+
+                    that.$refs.videoIframe.contentWindow.startVideo()
                 }
             })
 
+        },
+
+        dialogBeforeClose() {
+          this.dialogVisible = false
+
+          this.$refs.videoIframe.contentWindow.closeVideo()
+
         }
 
     },

--
Gitblit v1.9.3