diff --git a/js/pages/dataAnalysisOctober/engineeringSafetyAnalysis.js b/js/pages/dataAnalysisOctober/engineeringSafetyAnalysis.js index 279d0fa..a22b60d 100644 --- a/js/pages/dataAnalysisOctober/engineeringSafetyAnalysis.js +++ b/js/pages/dataAnalysisOctober/engineeringSafetyAnalysis.js @@ -631,13 +631,7 @@ function initEnvironmentRecordTable() { { field: 'airQuality', title: '空气质量', width: '6%', align: 'center' }, { title: '视频查看', width: '6%', align: 'center', templet: function (d) { - const videoUrl = d.videoUrl || d.video || ''; - if (videoUrl) { - // 将视频URL编码后传递 - return '查看'; - } else { - return '暂无视频'; - } + return '查看'; } }, { field: 'analysis', title: '分析改进', width: '6%', align: 'center' }, @@ -669,24 +663,15 @@ function queryRecords() { } // 查看视频 -function viewVideo(videoUrlEncoded) { - try { - // 解码视频URL - const videoUrl = decodeURIComponent(videoUrlEncoded); - - // 设置视频源 - const videoPlayer = document.getElementById('videoPlayer'); - if (videoPlayer) { - videoPlayer.src = videoUrl; - videoPlayer.load(); - } - - // 显示弹框 - $('#videoModal').addClass('show'); - } catch (e) { - console.error('解析视频URL失败:', e); - layer.msg('视频URL格式错误', { icon: 2 }); +function viewVideo() { + // 清空视频源(占位) + const videoPlayer = document.getElementById('videoPlayer'); + if (videoPlayer) { + videoPlayer.src = ''; } + + // 显示弹框 + $('#videoModal').addClass('show'); } // 关闭视频查看弹框