🔨 执行命令.

This commit is contained in:
lijiahang
2024-03-15 19:32:22 +08:00
parent 87bbcfa845
commit 03c334a507
28 changed files with 791 additions and 202 deletions

View File

@@ -28,6 +28,7 @@ export interface ExecLogQueryResponse extends TableData, ExecLogQueryExtraRespon
status: string;
startTime: number;
finishTime: number;
hostIdList: Array<number>;
}
/**
@@ -88,6 +89,13 @@ export function getExecLogStatus(idList: Array<number>) {
});
}
/**
* 查询历史执行记录
*/
export function getExecLogHistory(limit: number) {
return axios.get<Array<ExecLogQueryResponse>>('/asset/exec-log/history', { params: { page: 1, limit } });
}
/**
* 删除执行记录
*/