无人机管理后台前端(已迁走)
张含笑
2025-11-25 d56b81e26eafa0f326c9c65090b01e231059bbef
feat:历史任务详情视频调整
1 files modified
7 ■■■■■ changed files
src/views/job/components/DeviceJobDetails.vue 7 ●●●●● patch | view | raw | blame | history
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