refactor(WEB): DataTable 개선 및 회계 상세 컴포넌트 리팩토링
- DataTable 컴포넌트 기능 확장 및 코드 개선 - 회계 상세 컴포넌트(Bill/Deposit/Purchase/Sales/Withdrawal) 리팩토링 - 엑셀 다운로드 유틸리티 개선 - 대시보드 및 각종 리스트 페이지 업데이트 - dashboard_type2 페이지 추가 - 프론트엔드 개선 로드맵 문서 추가 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -628,7 +628,7 @@ export function UniversalListPage<T>({
|
||||
return;
|
||||
}
|
||||
|
||||
downloadExcel({
|
||||
await downloadExcel({
|
||||
data: dataToDownload as Record<string, unknown>[],
|
||||
columns: columns as ExcelColumn<Record<string, unknown>>[],
|
||||
filename,
|
||||
@@ -645,7 +645,7 @@ export function UniversalListPage<T>({
|
||||
}, [config.excelDownload, config.clientSideFiltering, filteredData, rawData, activeTab, filters, debouncedSearchValue]);
|
||||
|
||||
// 선택 항목 엑셀 다운로드
|
||||
const handleSelectedExcelDownload = useCallback(() => {
|
||||
const handleSelectedExcelDownload = useCallback(async () => {
|
||||
if (!config.excelDownload) return;
|
||||
|
||||
const { columns, filename = 'export', sheetName = 'Sheet1' } = config.excelDownload;
|
||||
@@ -659,7 +659,7 @@ export function UniversalListPage<T>({
|
||||
// 현재 데이터에서 선택된 항목 필터링
|
||||
const selectedData = rawData.filter((item) => selectedIds.includes(getItemId(item)));
|
||||
|
||||
downloadSelectedExcel({
|
||||
await downloadSelectedExcel({
|
||||
data: selectedData as Record<string, unknown>[],
|
||||
columns: columns as ExcelColumn<Record<string, unknown>>[],
|
||||
selectedIds,
|
||||
|
||||
Reference in New Issue
Block a user