From 4296677fcdc708c080bb89414b527b01c1680420 Mon Sep 17 00:00:00 2001 From: guoyue Date: Thu, 22 Sep 2022 13:30:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A5=BF=E6=B5=B7=E5=B2=B8=EF=BC=9A=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E9=A2=84=E8=A7=88=E8=A7=86=E9=A2=91=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=EF=BC=8C=E5=8E=BB=E7=94=B3=E8=AF=B7=E6=89=8D?= =?UTF-8?q?=E8=83=BD=E6=9F=A5=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/views/home/infrastructurePage.vue | 99 +++++++++------------ 1 file changed, 40 insertions(+), 59 deletions(-) diff --git a/front/src/views/home/infrastructurePage.vue b/front/src/views/home/infrastructurePage.vue index 98d4f90a..65297386 100644 --- a/front/src/views/home/infrastructurePage.vue +++ b/front/src/views/home/infrastructurePage.vue @@ -353,19 +353,10 @@
-
- -
-
-
- - - -
-
-
+
+ +
+
@@ -397,6 +388,8 @@
+ +

@@ -650,27 +643,11 @@ const tabList = ref([ const wrjVisible = ref(false) const wrjName = ref('') const wrjData = ref([]) -const showWrj = (data) => { - console.log('data---dddd--------->', data); - wrjName.value = data.wrjName - // wrjData.value = data.details - wrjData.value = data.deviceAttrDTOList - // wrjData.value = [] - // data.deviceAttrDTOList.map(v => { - // console.log('v.attrType------------>', v.attrType); - // console.log('v.attrValue------------>', v.attrValue); - // try { - // let obj = { - // name: v.attrType, - // list: v.attrValue && JSON.parse(v.attrValue) - // } - // wrjData.value.push(obj) - // } catch (error) { - // console.log('error------------>', error); - // } - // }) - // console.log('wrjData.value------------>', wrjData.value); +// 单兵、无人机-详情 +const showWrj = (data) => { + wrjName.value = data.wrjName + wrjData.value = data.deviceAttrDTOList || [] wrjVisible.value = true } const goToWrj = (data) => { @@ -718,7 +695,7 @@ const openVideo = (id) => { visible.value = true options.src = res.data.data }) - // 视频测试--勿删 + // // 视频测试--勿删 // visible.value = true // options.src = 'http://playertest.longtailvideo.com/adaptive/bipbop/gear4/prog_index.m3u8' } @@ -1318,13 +1295,13 @@ const batchPreview = async function (page) { muted: false, //静音 webFullScreen: false, speedRate: ['0.75', '1.0', '1.25', '1.5', '2.0'], //播放倍速 - autoPlay: isXiHaiAn, //自动播放 + autoPlay: isXiHaiAn ? false : true, //自动播放 loop: false, //循环播放 mirror: false, //镜像画面 ligthOff: false, //关灯模式 volume: 0.3, //默认音量大小 - control: true, //是否显示控制 - controlBtns: [ + control: isXiHaiAn ? false : true, //是否显示控制 + controlBtns: isXiHaiAn ? [] : [ 'audioTrack', 'quality', 'speedRate', @@ -1337,6 +1314,8 @@ const batchPreview = async function (page) { }, } await getStreamByChannelCode(param).then((res) => { + // 视频测试 + // ob.options.src = 'http://playertest.longtailvideo.com/adaptive/bipbop/gear4/prog_index.m3u8' ob.options.src = res.data.data console.log('监测ob的变化', ob) videoList.value.push(ob) @@ -1640,7 +1619,7 @@ const handleTableChange = (val) => { } } -const showMsg = () => { +const videoShowMsg = () => { message.warning('请申请后在我的申请中预览视频!') } @@ -2031,27 +2010,6 @@ const showMsg = () => { } } -.ant-modal-mask { - background: rgba(0, 0, 0, 0.2); -} - -.ant-modal-footer { - display: none; -} - -.single-preview-modal-cover { - background: transparent; - z-index: 999999; - - .ant-modal { - background: transparent !important; - } - - .ant-modal-content { - background: transparent !important; - } -} - .batch-preview-modal { .batch-video { width: 100%; @@ -2087,4 +2045,27 @@ const showMsg = () => { video::-webkit-media-controls { display: none !important; } + +.video-cover { + position: absolute; + left: 0; + top: 0; + bottom: 0; + right: 0; + background: transparent; + z-index: 99999999; + cursor: pointer; +} + +.batch-video-cover { + position: absolute; + left: 0; + top: 0; + background: transparent; + height: 288px; + z-index: 99999999; + width: 512px; + margin-top: 14px; + cursor: pointer; +}