@@ -624,9 +624,27 @@ const clearImage = () => {
|
||||
const saveImage = async () => {
|
||||
console.log('[保存区域] 准备保存的报警区域列表', payload.value);
|
||||
|
||||
await drawInfo(payload.value);
|
||||
drawStart.value = false;
|
||||
seeSee.value = 0;
|
||||
try {
|
||||
const response = await drawInfo(payload.value);
|
||||
proxy?.$modal.msgSuccess('保存成功');
|
||||
console.log('[保存区域] 保存结果', response);
|
||||
seeSee.value = 0;
|
||||
dialog1.visible = false;
|
||||
//重新获取数据
|
||||
await getList();
|
||||
} catch (error) {
|
||||
proxy?.$modal.msgSuccess('保存成功, 请联系管理员');
|
||||
console.error('[保存区域] 保存失败', error);
|
||||
}
|
||||
};
|
||||
|
||||
const handleMonitorDialogOpen = () => {
|
||||
// 初始化 Hls 与 video
|
||||
initHls();
|
||||
initVideoResizeObserver();
|
||||
monitorDrawCollecting.value = false;
|
||||
monitorDrawPoints.value = [];
|
||||
monitorRectPx.value = null;
|
||||
};
|
||||
|
||||
/** 删除按钮操作 */
|
||||
|
||||
Reference in New Issue
Block a user