feat: 添加告警信息导出功能,并优化历史告警页面

This commit is contained in:
TsMask
2025-04-18 19:20:10 +08:00
parent e10740220c
commit 0b6e8e6fbe
6 changed files with 110 additions and 45 deletions

View File

@@ -116,6 +116,21 @@ export function clearAlarm(ids: number[]) {
});
}
/**
* 告警信息导出
* @param params 查询列表条件
* @returns object
*/
export function exportAlarm(params: Record<string, any>) {
return request({
url: '/neData/alarm/export',
method: 'GET',
params: params,
responseType: 'blob',
timeout: 60_000,
});
}
/**
* 手工同步
* @param data 鉴权对象