From 0f7c0e33ac6110e7ccbd93c133ea5516f96b4df8 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 08 Apr 2021 10:24:58 +0800
Subject: [PATCH] 4.8

---
 src/page/index/logo.vue |   28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diff --git a/src/page/index/logo.vue b/src/page/index/logo.vue
index af4bfe4..e7b5548 100644
--- a/src/page/index/logo.vue
+++ b/src/page/index/logo.vue
@@ -403,11 +403,9 @@
                   .then((result) => {
                     axios({
                       method: "post",
-                      url: `/api/blade-jfpts/rvideo/rVoid`,
-                      timeout: 600000,
+                      url: `/api/blade-jfpts/rvideo/rVoids`,
                       params: {
-                        sourcePath: result.data.data.flv,
-                        jid: that.form.id,
+                        url: result.data.data.flv,
                       },
                     }).then((resdata) => {});
                   });
@@ -444,7 +442,6 @@
       this.videoConversationReal = false;
       this.oldVideoSatart = false;
     },
-
     getDate() {
       // 当前时间
       var timestamp = Date.parse(new Date());
@@ -574,6 +571,14 @@
         )
         .then(function () {
           that.dialogTableVisible = false;
+
+          axios({
+            method: "post",
+            url: `/api/blade-jfpts/rvideo/stop`,
+            params: {
+              jid: row.id,
+            },
+          }).then((resdata) => {});
 
           that.$router.push({
             path: "/policeTracking/track",
@@ -802,7 +807,6 @@
 
     //启动websocket
     websocketStart() {
-
       var that = this;
 
       if (!window.WebSocket) {
@@ -819,14 +823,11 @@
 
         window.socket.onopen = function (event) {};
 
-        window.socket.onclose = function (event) {
-
-        };
+        window.socket.onclose = function (event) {};
         window.socket.error = function (event) {
           //执行重连
           that.websocketStart();
         };
-
       } else {
         console.log("WebSocket连接没有建立成功!!");
       }
@@ -846,18 +847,15 @@
 
           //开启心跳传送
           window.websockPing = setInterval(function () {
-
             if (window.socket.readyState == WebSocket.OPEN) {
               window.socket.send("ping");
-            }else{
-              console.log("心跳停止,断开重连")
+            } else {
+              console.log("心跳停止,断开重连");
               //断开连接,重连
               window.clearTimeout(window.websockPing);
               //执行重连
               that.websocketStart();
             }
-
-
           }, 10000);
         } else {
           console.log("WebSocket连接没有建立成功!!");

--
Gitblit v1.9.3