feat: 新增后台全量导出excel

This commit is contained in:
valarchie
2023-07-16 13:56:17 +08:00
parent 61a980a37d
commit bc4d29cba0
5 changed files with 131 additions and 21 deletions

View File

@@ -42,6 +42,15 @@ export const getOperationLogListApi = (params?: OperationLogsQuery) => {
);
};
export const exportOperationLogExcelApi = (
params: OperationLogsQuery,
fileName: string
) => {
return http.download("/logs/operationLogs/excel", fileName, {
params
});
};
export const deleteOperationLogApi = (data: Array<number>) => {
return http.request<ResponseData<void>>("delete", "/logs/operationLogs", {
params: {