feat 优化报警数量联动功能

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-06-11 10:01:49 +08:00
parent 13b00ac8de
commit 2492b8ff5a

View File

@@ -199,6 +199,11 @@ const getList = async () => {
const res = await listDemo(queryParams.value);
demoList.value = res.data.rows;
total.value = res.data.total;
await getWarningList({
status: 0,
pageNum: 1,
pageSize: 300
});
} finally {
loading.value = false;
}
@@ -238,7 +243,7 @@ const handleUpdate = async (row: any) => {
loading.value = true;
try {
await updateDemo(row.id);
await handleAction(row.id);
proxy?.$modal.msgSuccess('处理成功');
await getList();
} finally {
@@ -255,7 +260,7 @@ const handleBatchProcess = async () => {
await proxy?.$modal.confirm('是否确认批量处理已选中的报警?');
loading.value = true;
try {
await updateDemo(ids.value);
await handleAction(ids.value);
proxy?.$modal.msgSuccess('处理成功');
await getList();
} finally {