Browse Source

安防监控

ltao 3 years ago
parent
commit
6d732e4e31
1 changed files with 12 additions and 6 deletions
  1. 12 6
      src/views/monitoring/camera/index.vue

+ 12 - 6
src/views/monitoring/camera/index.vue

@@ -530,8 +530,11 @@ export default {
         this.getList(1);
       } else {
         var index = this.$route.path.lastIndexOf("/");
-        let str = this.$route.path.substring(index + 1, this.$route.path.length);
-        console.log(str)
+        let str = this.$route.path.substring(
+          index + 1,
+          this.$route.path.length
+        );
+        console.log(str);
         // const a = this.$route.path.substring(this.$route.path.lastIndexOf("/"));
         this.getList(str);
       }
@@ -602,6 +605,7 @@ export default {
           this.flvPlayerList1.push(name);
         });
       }
+      // this.destoryVideo(this.flvPlayerList1[0])
     },
     // 单视屏
     oneVideo() {
@@ -621,9 +625,11 @@ export default {
           this.destoryVideo(this.flvPlayerList1[0]);
           this.flvPlayerList1.shift();
         }
-        // console.log(this.flvPlayerList1);
+        // if (this.flvPlayerList1.length > 3) {
+        //   this.destoryVideo(this.flvPlayerList1[0]);
+        //   this.flvPlayerList1.shift();
+        // }
         this.url1 = this.cameraList[index].caddr;
-        // console.log(this.url1);
         this.dan = true;
         this.singleplayvideo("flvPlayer1", this.url1, 0);
       }
@@ -764,13 +770,13 @@ export default {
             updateCamera(this.form).then((response) => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
-              this.aa()
+              this.aa();
             });
           } else {
             addCamera(this.form).then((response) => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
-              this.aa()
+              this.aa();
             });
           }
         }