|
@@ -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();
|
|
|
});
|
|
|
}
|
|
|
}
|