feat: 完成P6-P8前端能力闭环(V3,D2,D3,B3)
这个提交包含在:
+15
-1
@@ -41,5 +41,19 @@ export async function exportAuditLogs(params: {
|
||||
return apiRequestBlob(`/api/exports/audit-logs?${qs.toString()}`);
|
||||
}
|
||||
|
||||
export type { ApiBlobResponse };
|
||||
export async function exportDashboardReimbursements(params: {
|
||||
format: "csv" | "xlsx";
|
||||
dateFrom?: string;
|
||||
dateTo?: string;
|
||||
departmentId?: string;
|
||||
}) {
|
||||
const qs = new URLSearchParams();
|
||||
qs.set("format", params.format);
|
||||
if (params.dateFrom) qs.set("dateFrom", params.dateFrom);
|
||||
if (params.dateTo) qs.set("dateTo", params.dateTo);
|
||||
if (params.departmentId) qs.set("departmentId", params.departmentId);
|
||||
|
||||
return apiRequestBlob(`/api/exports/dashboard/reimbursements?${qs.toString()}`);
|
||||
}
|
||||
|
||||
export type { ApiBlobResponse };
|
||||
|
||||
在新工单中引用
屏蔽一个用户