feat 优化消息弹窗查看画面

This commit is contained in:
Ironsp
2026-06-23 08:53:30 +08:00
parent e47b8d354e
commit 8d27df05d6

View File

@@ -34,7 +34,7 @@
> >
<template #header> <template #header>
<div class="flex w-full items-center justify-between gap-2 min-w-0 pr-8"> <div class="flex w-full items-center justify-between gap-2 min-w-0 pr-8">
<span class="truncate">实时监控</span> <span class="truncate">实时监控-{{ monitoringArea }}监控</span>
</div> </div>
</template> </template>
<div class="monitor-video-wrap"> <div class="monitor-video-wrap">
@@ -59,6 +59,7 @@ const { proxy } = getCurrentInstance() as ComponentInternalInstance;
import { nextTick } from 'vue'; import { nextTick } from 'vue';
import { useVideosStore } from '@/store/modules/video'; import { useVideosStore } from '@/store/modules/video';
const videosStore = useVideosStore(); const videosStore = useVideosStore();
const monitoringArea = ref<string>('');
const warningListStore = useWarningListStore(); const warningListStore = useWarningListStore();
const noticeStore = useNoticeStore(); const noticeStore = useNoticeStore();
@@ -117,6 +118,7 @@ const handleSee = async (row: any) => {
} }
await videosStore.getVideos(videoId); await videosStore.getVideos(videoId);
monitorVideoUrl.value = videosStore.hisUrl; monitorVideoUrl.value = videosStore.hisUrl;
monitoringArea.value = row.monitoringArea;
dialog.visible = true; dialog.visible = true;
await nextTick(); await nextTick();
initHls(monitorVideoUrl, monitorVideoRef); initHls(monitorVideoUrl, monitorVideoRef);