From 6e15e28f380d42a43719a0f72b5dfbc993554efe Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Fri, 26 Jun 2026 14:54:55 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/equipmentList/list.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/equipmentList/list.vue b/src/views/equipmentList/list.vue index 5b86c1c..7a0600d 100644 --- a/src/views/equipmentList/list.vue +++ b/src/views/equipmentList/list.vue @@ -134,6 +134,7 @@
{{ videoName }}-{{ monitoringArea }}监控
+ 刷新 绘制区域 清空区域 保存区域 @@ -688,6 +689,19 @@ watch( videoName.value = newValue === 1 ? '绘制区域' : '实时监控'; } ); + +/** 刷新按钮操作 */ +const handleRefresh = async () => { + if (!form.value.id) return; + destroyHls(monitorVideoRef); + monitorVideoUrl.value = ''; + await videosStore.getVideos(form.value.id); + monitorVideoUrl.value = videosStore.hisUrl || ''; + if (monitorVideoUrl.value) { + await nextTick(); + initHls(monitorVideoUrl, monitorVideoRef); + } +};