feat 摄像头需求变更

This commit is contained in:
Ironsp
2026-07-27 17:07:50 +08:00
parent 5ff0a2e048
commit bf3c8d8228

View File

@@ -232,7 +232,7 @@
<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">{{ videoName }}-{{ monitoringArea }}监控</span> <span class="truncate">{{ videoName }}-{{ monitoringArea }}监控</span>
<div> <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 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="drawImage()">绘制区域</el-button>
<el-button v-if="seeSee" type="primary" class="shrink-0" @click="clearImage()">清空区域</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; monitorRectPx.value = null;
currentDrawArea.value = null; currentDrawArea.value = null;
}; };
const videosInfo = ref(); // const videosInfo = ref();
const handleSee = async (row?: any) => { const handleSee = async (row?: any) => {
console.log('1111111111111111', row, row.drawArea); console.log('1111111111111111', row, row.drawArea);
videosInfo.value = row; // videosInfo.value = row;
reset(); reset();
resetMonitorDraw(); resetMonitorDraw();
seeSee.value = row?.isDrawArea === 1 ? 1 : 0; seeSee.value = row?.isDrawArea === 1 ? 1 : 0;
@@ -797,10 +797,10 @@ watch(
} }
); );
/** 刷新按钮操作 */ /** 刷新按钮操作 */
const handleVideo = async (row?: any) => { // const handleVideo = async (row?: any) => {
console.log('11111111111', row); // console.log('11111111111', row);
handleSee(row); // handleSee(row);
}; // };
/** 刷新按钮操作 */ /** 刷新按钮操作 */
const handleRefresh = async () => { const handleRefresh = async () => {