From 402ebe1f44db8b1422c883085c54fdd77e48c1a4 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 5 Nov 2024 09:24:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A6=86=E5=86=B0=E6=B7=BB=E5=8A=A0=E6=8B=8D?= =?UTF-8?q?=E7=85=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/carouselChart.vue | 30 +- .../ptzDevice/components/setTime.vue | 464 ++++++++++++++++++ .../components/ptzDevice/ptzDraw.vue | 226 ++++++++- 3 files changed, 684 insertions(+), 36 deletions(-) create mode 100644 src/views/realTimeMonitor/components/ptzDevice/components/setTime.vue diff --git a/src/views/realTimeMonitor/components/carouselChart.vue b/src/views/realTimeMonitor/components/carouselChart.vue index d1225a1..18bcc0b 100644 --- a/src/views/realTimeMonitor/components/carouselChart.vue +++ b/src/views/realTimeMonitor/components/carouselChart.vue @@ -50,7 +50,7 @@ slot="placeholder" class="image-slot" :style="{ - backgroundImage: 'url(' + currentPicPath + '!160x60' + ')', + backgroundImage: 'url(' + currentPicPath + '!260x160' + ')', }" > @@ -115,7 +115,7 @@ item.path.indexOf('videos') == -1 " > - +

@@ -150,7 +150,7 @@

- +

- scrollContainer.scrollWidth - ) { - scrollDistance = scrollContainer.scrollWidth - scrollContainerWidth; - } - // 调整滚动容器的scrollLeft - scrollContainer.scrollLeft = scrollDistance; + // let scrollDistance = + // selectedItemLeft - (scrollContainerWidth - selectedItemWidth) / 2; + // if (scrollDistance < 0) { + // scrollDistance = 0; + // } else if ( + // scrollDistance + scrollContainerWidth > + // scrollContainer.scrollWidth + // ) { + // scrollDistance = scrollContainer.scrollWidth - scrollContainerWidth; + // } + // // 调整滚动容器的scrollLeft + // scrollContainer.scrollLeft = scrollDistance; } }, loadImage() { diff --git a/src/views/realTimeMonitor/components/ptzDevice/components/setTime.vue b/src/views/realTimeMonitor/components/ptzDevice/components/setTime.vue new file mode 100644 index 0000000..b287a86 --- /dev/null +++ b/src/views/realTimeMonitor/components/ptzDevice/components/setTime.vue @@ -0,0 +1,464 @@ + + + diff --git a/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue b/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue index edaca13..a374292 100644 --- a/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue +++ b/src/views/realTimeMonitor/components/ptzDevice/ptzDraw.vue @@ -81,10 +81,18 @@ {{ speedVal }}%

- 主动拍照 - 开启雨刷主动拍照 + 下发时间表 + 镜头除雾 确 定
+ + + + + + + + {{ + item.alias !== null && item.alias !== "" + ? item.alias + : item.channelname + }} + + + + + + + + + + +