diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json index 2ca3adf..d979925 100644 --- a/.eslintrc-auto-import.json +++ b/.eslintrc-auto-import.json @@ -5,6 +5,10 @@ "ComputedRef": true, "DirectiveBinding": true, "EffectScope": true, + "ElLoading": true, + "ElMessage": true, + "ElMessageBox": true, + "ElNotification": true, "ExtractDefaultPropTypes": true, "ExtractPropTypes": true, "ExtractPublicPropTypes": true, diff --git a/src/views/equipmentList/list.vue b/src/views/equipmentList/list.vue index a1cbc48..553b2d7 100644 --- a/src/views/equipmentList/list.vue +++ b/src/views/equipmentList/list.vue @@ -520,6 +520,19 @@ const handleMonitorDialogClose = (done: () => void) => { destroyVideoResizeObserver(); resetMonitorDraw(); done(); + //刷新列表 + getList(); +}; + +const handleMonitorDialogOk = async () => { + if (monitorDrawCollecting.value) { + proxy?.$modal.msgWarning('请先完成报警区域绘制'); + return; + } + if (!currentDrawArea.value) { + proxy?.$modal.msgWarning('请先绘制报警区域'); + return; + } }; /** 显示坐标(相对 video 元素) → 视频原始像素坐标,含 object-fit: contain 留白换算 */