feat: HLR跟踪任务页面免登录/trace-task-hlr

This commit is contained in:
TsMask
2024-09-20 12:05:16 +08:00
parent d268d920e7
commit f8439bb40a
3 changed files with 67 additions and 43 deletions

View File

@@ -22,6 +22,7 @@ export function delTaskHLR(ids: string | number) {
return request({
url: `/trace/task/hlr/${ids}`,
method: 'delete',
timeout: 60_000,
});
}
@@ -35,6 +36,7 @@ export function startTaskHLR(data: Record<string, any>) {
url: '/trace/task/hlr/start',
method: 'post',
data: data,
timeout: 60_000,
});
}
@@ -48,6 +50,7 @@ export function stopTaskHLR(data: Record<string, any>) {
url: '/trace/task/hlr/stop',
method: 'post',
data: data,
timeout: 60_000,
});
}
@@ -63,3 +66,18 @@ export function fileTaskHLR(data: Record<string, any>) {
data: data,
});
}
/**
*
* @param query
* @returns object
*/
export function filePullTaskHLR(query: Record<string, any>) {
return request({
url: '/trace/task/hlr/filePull',
method: 'get',
params: query,
responseType: 'blob',
timeout: 60_000,
});
}