From 6fdb3366e50e92f5a14e431ed3de0f8d83b93f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E7=8E=89=E7=90=A6?= <7507756+jiang_yuqi@user.noreply.gitee.com> Date: Tue, 17 Oct 2023 00:04:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/projectVideo.vue | 107 ++++++++++++++++++++----------------- 1 file changed, 57 insertions(+), 50 deletions(-) diff --git a/src/pages/projectVideo.vue b/src/pages/projectVideo.vue index 326b83a..a306a6e 100644 --- a/src/pages/projectVideo.vue +++ b/src/pages/projectVideo.vue @@ -3,7 +3,7 @@
- +
-
{{item.project_abbreviation}}
- -
    -
  • - - {{video.videoName}} -
  • -
-
+
    +
  • + + {{video.videoName}} +
  • +
- +
@@ -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