|
@@ -9,6 +9,7 @@ import LiveMonitoringCard from './LiveMonitoringCard';
|
|
import ExecutionLogCard from './ExecutionLogCard';
|
|
import ExecutionLogCard from './ExecutionLogCard';
|
|
import LiveVideoCard from './LiveVideoCard';
|
|
import LiveVideoCard from './LiveVideoCard';
|
|
import './index.scss';
|
|
import './index.scss';
|
|
|
|
+import { watch } from 'fs';
|
|
|
|
|
|
export default defineComponent({
|
|
export default defineComponent({
|
|
name: 'IncidentDetail',
|
|
name: 'IncidentDetail',
|
|
@@ -19,7 +20,7 @@ export default defineComponent({
|
|
const markerStore = useMarkerStore();
|
|
const markerStore = useMarkerStore();
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
|
|
|
- const livevisible = ref(false);
|
|
|
|
|
|
+ const liveVideoRef = ref<HTMLElement>();
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
commonStore.getGlobalDict('zhdd_incident_type');
|
|
commonStore.getGlobalDict('zhdd_incident_type');
|
|
@@ -27,12 +28,18 @@ export default defineComponent({
|
|
commonStore.getGlobalDict('zhdd_org_upload');
|
|
commonStore.getGlobalDict('zhdd_org_upload');
|
|
commonStore.getGlobalDict('zhdd_incident_level');
|
|
commonStore.getGlobalDict('zhdd_incident_level');
|
|
store.getIncidentItem(route.query.id as string);
|
|
store.getIncidentItem(route.query.id as string);
|
|
|
|
+ liveVideoRef.value?.addEventListener('click', (el: MouseEvent) => {
|
|
|
|
+ if (el.target && liveVideoRef.value?.contains(el.target as Node)) {
|
|
|
|
+ console.log('q1111');
|
|
|
|
+ }
|
|
|
|
+ });
|
|
});
|
|
});
|
|
onUnmounted(() => {
|
|
onUnmounted(() => {
|
|
store.incidentDetail = {};
|
|
store.incidentDetail = {};
|
|
markerStore.livevideovisible = false;
|
|
markerStore.livevideovisible = false;
|
|
markerStore.livevideos = [];
|
|
markerStore.livevideos = [];
|
|
});
|
|
});
|
|
|
|
+
|
|
return () => (
|
|
return () => (
|
|
<>
|
|
<>
|
|
<div class="incident-detail-page-container">
|
|
<div class="incident-detail-page-container">
|
|
@@ -51,7 +58,7 @@ export default defineComponent({
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{markerStore.livevideovisible && (
|
|
{markerStore.livevideovisible && (
|
|
- <div class="live-video-container-left">
|
|
|
|
|
|
+ <div ref={liveVideoRef} class="live-video-container-left">
|
|
<div class="live-video-container">
|
|
<div class="live-video-container">
|
|
<LiveVideoCard />
|
|
<LiveVideoCard />
|
|
</div>
|
|
</div>
|