feat 摄像头需求变更
This commit is contained in:
@@ -232,7 +232,7 @@
|
||||
<div class="flex w-full items-center justify-between gap-2 min-w-0 pr-8">
|
||||
<span class="truncate">{{ videoName }}-{{ monitoringArea }}监控</span>
|
||||
<div>
|
||||
<el-button type="primary" class="shrink-0" @click="handleVideo(videosInfo)">切换摄像头</el-button>
|
||||
<!-- <el-button type="primary" class="shrink-0" @click="handleVideo(videosInfo)">切换摄像头</el-button> -->
|
||||
<el-button type="primary" class="shrink-0" @click="handleRefresh">刷新</el-button>
|
||||
<el-button v-if="!seeSee" type="primary" class="shrink-0" @click="drawImage()">绘制区域</el-button>
|
||||
<el-button v-if="seeSee" type="primary" class="shrink-0" @click="clearImage()">清空区域</el-button>
|
||||
@@ -447,10 +447,10 @@ const resetMonitorDraw = () => {
|
||||
monitorRectPx.value = null;
|
||||
currentDrawArea.value = null;
|
||||
};
|
||||
const videosInfo = ref();
|
||||
// const videosInfo = ref();
|
||||
const handleSee = async (row?: any) => {
|
||||
console.log('1111111111111111', row, row.drawArea);
|
||||
videosInfo.value = row;
|
||||
// videosInfo.value = row;
|
||||
reset();
|
||||
resetMonitorDraw();
|
||||
seeSee.value = row?.isDrawArea === 1 ? 1 : 0;
|
||||
@@ -797,10 +797,10 @@ watch(
|
||||
}
|
||||
);
|
||||
/** 刷新按钮操作 */
|
||||
const handleVideo = async (row?: any) => {
|
||||
console.log('11111111111', row);
|
||||
handleSee(row);
|
||||
};
|
||||
// const handleVideo = async (row?: any) => {
|
||||
// console.log('11111111111', row);
|
||||
// handleSee(row);
|
||||
// };
|
||||
|
||||
/** 刷新按钮操作 */
|
||||
const handleRefresh = async () => {
|
||||
|
||||
Reference in New Issue
Block a user