yjj 5 gadi atpakaļ
vecāks
revīzija
8b306c9c9b
1 mainītis faili ar 4 papildinājumiem un 1 dzēšanām
  1. 4 1
      src/views/deviceManagement/CameraManagement.vue

+ 4 - 1
src/views/deviceManagement/CameraManagement.vue

@@ -220,7 +220,7 @@ export default {
                 method: "POST",
                 data: { categoryId }, //目前只有一个组织,其他参数调整钟 732971735112749056
                 success: res => {
-                    this.deviceList = res;
+                    this.deviceList = res.content;
                 },
                 fail: err => {
                     if (err.errCode == "request_not_authorize") {
@@ -323,6 +323,9 @@ export default {
                 let ws = channals[0].ws;
                 console.log("rtsp==>>  " + rtsp);
                 console.log("ws==>>  " + ws);
+                if(row.data && row.data["curr-ip"]){//要更换IP
+                    ws = ws.replace("ip-addr",row.data["curr-ip"])
+                }
                 this.videoData = {
                     rtsp,
                     ws,