|
@ -7,8 +7,11 @@ |
|
|
</video> --> |
|
|
</video> --> |
|
|
<div id="videoPlayer" @mousedown="mouseDownVideo"></div> |
|
|
<div id="videoPlayer" @mousedown="mouseDownVideo"></div> |
|
|
<div v-for="item in labelList" :class="`labels ${item.groupName == '视频标签' ? 'lavels-video' : 'lavels-build'}`" |
|
|
<div v-for="item in labelList" :class="`labels ${item.groupName == '视频标签' ? 'lavels-video' : 'lavels-build'}`" |
|
|
:key="item.id" :id="item.id" |
|
|
:key="item.id" |
|
|
:style="`top:${canvasHeight * item.canvasTopRatio}px;left:${canvasWidth * item.canvasLeftRatio}px`"> |
|
|
:id="item.id" |
|
|
|
|
|
:style="`top:${canvasHeight * item.canvasTopRatio}px;left:${canvasWidth * item.canvasLeftRatio}px`" |
|
|
|
|
|
@click="itemClick(item)" |
|
|
|
|
|
> |
|
|
<a-dropdown :trigger="['contextmenu']"> |
|
|
<a-dropdown :trigger="['contextmenu']"> |
|
|
<div class="labels-item" v-if="item.groupName == '视频标签'"> |
|
|
<div class="labels-item" v-if="item.groupName == '视频标签'"> |
|
|
<!-- <div class="labels-item" v-if="item.inFlag"> --> |
|
|
<!-- <div class="labels-item" v-if="item.inFlag"> --> |
|
@ -75,6 +78,7 @@ import Msg from "@/utils/message"; |
|
|
import CameraLeftMenu from '@/views/page/Aside/cameraLeftMenu.vue' |
|
|
import CameraLeftMenu from '@/views/page/Aside/cameraLeftMenu.vue' |
|
|
import CameraRightMenu from '@/views/page/Aside/cameraRightMenu.vue' |
|
|
import CameraRightMenu from '@/views/page/Aside/cameraRightMenu.vue' |
|
|
import LabelEditModel from '@/views/page/Model/LabelEditModel.vue' |
|
|
import LabelEditModel from '@/views/page/Model/LabelEditModel.vue' |
|
|
|
|
|
import cameraWindow from '@/views/page/cameraWindow.vue' |
|
|
import popup from "@/utils/popup"; |
|
|
import popup from "@/utils/popup"; |
|
|
import VideoControlSimple from './VideoControl/VideoControlSimple.vue'; |
|
|
import VideoControlSimple from './VideoControl/VideoControlSimple.vue'; |
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
|
@ -182,6 +186,12 @@ function deleteLabel(id: number) { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//标签点击事件 |
|
|
|
|
|
function itemClick(item:any){ |
|
|
|
|
|
// console.log("点击",item); |
|
|
|
|
|
popup("监控画面", [h(cameraWindow, { windowData: item })], "cameraWindow"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
function loadVideoPlayer() { |
|
|
function loadVideoPlayer() { |
|
|
let elmId = 'videoPlayer'; |
|
|
let elmId = 'videoPlayer'; |
|
|
let url = apiUrl.WebRtcUrl; |
|
|
let url = apiUrl.WebRtcUrl; |
|
|