feat 绘制区域展示

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-05-27 09:30:56 +08:00
parent dd5510e5c0
commit d94f28f1d3

View File

@@ -381,7 +381,10 @@ const resetMonitorDraw = () => {
monitorRectPx.value = null;
};
const handleSee = async (row?: any) => {
console.log('1111111111111111', row);
console.log('1111111111111111', row, row.drawArea);
//将row.drawArea从字符串转为对象
const drawArea = JSON.parse(row.drawArea);
console.log('222222222222', drawArea);
reset();
resetMonitorDraw();
seeSee.value = row?.isDrawArea === 1 ? 1 : 0;
@@ -395,6 +398,9 @@ const handleSee = async (row?: any) => {
// 等待 DOM 更新后初始化 Hls
await nextTick();
initHls();
if (drawArea) {
monitorDrawCollecting.value = true;
}
};
const handleMonitorDialogClose = (done: () => void) => {