From d56b81e26eafa0f326c9c65090b01e231059bbef Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Tue, 25 Nov 2025 19:33:52 +0800
Subject: [PATCH] feat:历史任务详情视频调整
---
src/views/job/components/DeviceJobDetails.vue | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/views/job/components/DeviceJobDetails.vue b/src/views/job/components/DeviceJobDetails.vue
index f712736..349b529 100644
--- a/src/views/job/components/DeviceJobDetails.vue
+++ b/src/views/job/components/DeviceJobDetails.vue
@@ -117,7 +117,7 @@
controls
preload="auto"
@play="handleVideoPlay"
- @ended="handleVideoEnded(index)"
+ @ended="handleVideoEnded"
></video>
</div>
</el-dialog>
@@ -171,6 +171,7 @@
const VideoShow = ref(false)
const showAll = ref(false) // 是否展示全部
let loadingData
+const fullscreenVideo = ref(null)
// 视频播放事件处理
const handleVideoPlay = (event) => {
if (event.target.playbackRate !== 0.75) {
@@ -180,7 +181,7 @@
}
const handleVideoEnded = index => {
// 获取当前视频
- const video = videoRefs.value[index]
+ const video = fullscreenVideo.value
// 重置视频播放时间为 0
video.currentTime = 0
@@ -311,7 +312,7 @@
// 播放
const videoRef = ref(null);
const currentVideoIndex = ref(-1)
-const fullscreenVideo = ref(null)
+
const enterFullScreen = (index) => {
currentVideoIndex.value = index
VideoShow.value = true
--
Gitblit v1.9.3