260623_02_ENH: 엑셀 다운로드를 포함한 1차 개발 완료
This commit is contained in:
@@ -88,6 +88,17 @@ export function useDownloadPerformanceExcelTemplateMutation() {
|
||||
});
|
||||
}
|
||||
|
||||
export function useExportPerformanceMutation() {
|
||||
return useMutation({
|
||||
mutationFn: ({performanceIds}: {performanceIds: number[]}) =>
|
||||
nextApi.post<ArrayBuffer>(
|
||||
"/performance/excel-download",
|
||||
performanceIds.map(String),
|
||||
{ expectBinary: true }
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
export function useDownloadAssignExcelTemplateMutation() {
|
||||
return useMutation({
|
||||
mutationFn: () =>
|
||||
|
||||
@@ -38,6 +38,17 @@ export function useUpdateUserMutation() {
|
||||
});
|
||||
}
|
||||
|
||||
export function useExportUserMutation() {
|
||||
return useMutation({
|
||||
mutationFn: ({userRole, userIds}: {userRole: number; userIds: string[]}) =>
|
||||
nextApi.post<ArrayBuffer>(
|
||||
`/user/excel-download/${userRole}`,
|
||||
userIds,
|
||||
{ expectBinary: true }
|
||||
),
|
||||
});
|
||||
}
|
||||
|
||||
export function useDeleteUserMutation() {
|
||||
const qc = useQueryClient();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user