@@ -1431,52 +1428,52 @@ export default {
this.request.replace("{{videoDvrNumber}}", it.videoDvrNumber)
);
},
- //查询视频通道
- initVideo(videoDvrNumber, url) {
- let that = this;
- this.$api.video.getVideoPassage(videoDvrNumber).then((response) => {
- let data = response.data;
- this.videoPassageList = data;
- that.showVideo = true;
- data.forEach((it, idx) => {
- if (idx == 0) {
- that.url0 = url.replace("{{passage}}", it.passageValue);
- }
- if (idx == 1) {
- that.url1 = url.replace("{{passage}}", it.passageValue);
- }
- if (idx == 2) {
- that.url2 = url.replace("{{passage}}", it.passageValue);
- }
- if (idx == 3) {
- that.url3 = url.replace("{{passage}}", it.passageValue);
- }
+ //查询视频通道
+ initVideo(videoDvrNumber, url) {
+ let that = this;
+ this.$api.video.getVideoPassage(videoDvrNumber).then((response) => {
+ let data = response.data;
+ this.videoPassageList = data;
+ that.showVideo = true;
+ data.forEach((it, idx) => {
+ if (idx == 0) {
+ that.url0 = url.replace("{{passage}}", it.passageValue);
+ }
+ if (idx == 1) {
+ that.url1 = url.replace("{{passage}}", it.passageValue);
+ }
+ if (idx == 2) {
+ that.url2 = url.replace("{{passage}}", it.passageValue);
+ }
+ if (idx == 3) {
+ that.url3 = url.replace("{{passage}}", it.passageValue);
+ }
+ });
});
- });
- },
+ },
handleOnError0(error) {
- this.showVideoView0 = false;
- console.log("error: ", error);
- this.updatePassageState(this.videoPassageList[0].id);
+ //this.showVideoView0 = false;
+ console.log("error: ", error);
+ //this.updatePassageState(this.videoPassageList[0].id);
},
handleOnError1(error) {
- this.showVideoView1 = false;
- console.log("error: ", error);
- this.updatePassageState(this.videoPassageList[1].id);
+ //this.showVideoView1 = false;
+ console.log("error: ", error);
+ //this.updatePassageState(this.videoPassageList[1].id);
},
handleOnError2(error) {
- this.showVideoView2 = false;
- console.log("error: ", error);
- this.updatePassageState(this.videoPassageList[2].id);
+ //this.showVideoView2 = false;
+ console.log("error: ", error);
+ //this.updatePassageState(this.videoPassageList[2].id);
},
handleOnError3(error) {
- this.showVideoView3 = false;
- console.log("error: ", error);
- this.updatePassageState(this.videoPassageList[3].id);
+ //this.showVideoView3 = false;
+ console.log("error: ", error);
+ //this.updatePassageState(this.videoPassageList[3].id);
},
updatePassageState(id) {
- //没有好思路,这里先注释
- //this.$api.video.editPassageState(id,this.videoDvrNumber,"2");
+ //没有好思路,这里先注释
+ //this.$api.video.editPassageState(id,this.videoDvrNumber,"2");
},
},
@@ -1490,12 +1487,22 @@ export default {
.videoView {
color: aliceblue;
float: left;
- width: 50%;
- height: 452.5px;
+ width: 49.5%;
+ height: 458px;
+ margin-bottom:2px;
+ margin-top:2px;
+ margin-left:5px;
+ margin-right:3px;
}
.videoViewError {
background-color: #575e65;
text-align: center;
line-height: 420px;
}
+.video-enlarge-max{
+ padding:0 !important;
+}
+.video-enlarge-content{
+ overflow: hidden;
+}
\ No newline at end of file