feat: add export validation results to Excel feature
Add export functionality to CleanerPage that allows users to export the currently displayed validation results to an Excel file. - Add ExportResultItem and ExportResultResponse types - Create ResultExporter service using ExcelJS - Register cleaner:exportResults IPC handler - Add exportResults method to preload API - Connect export button in CleanerPage to export handler Export features: - Exports filtered results (respecting manager/visibility filters) - Includes selection status column - Saves to app data directory/exports/校验结果.xlsx Co-Authored-By: Claude (glm-5) <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ import { contextBridge, ipcRenderer } from 'electron'
|
||||
import { electronAPI } from '@electron-toolkit/preload'
|
||||
import type { MySqlConfig, SqlServerConfig } from '../main/types/ipc-api.types'
|
||||
import type { ExtractorInput } from '../main/types/extractor.types'
|
||||
import type { CleanerInput } from '../main/types/cleaner.types'
|
||||
import type { CleanerInput, ExportResultItem } from '../main/types/cleaner.types'
|
||||
import type { ResolverInput } from '../main/ipc/resolver-handler'
|
||||
import type { LoginRequest } from '../main/ipc/auth-handler'
|
||||
import type { UserInfo } from '../main/types/user.types'
|
||||
@@ -27,7 +27,8 @@ const api = {
|
||||
|
||||
// Cleaner service
|
||||
cleaner: {
|
||||
runCleaner: (input: CleanerInput) => ipcRenderer.invoke('cleaner:run', input)
|
||||
runCleaner: (input: CleanerInput) => ipcRenderer.invoke('cleaner:run', input),
|
||||
exportResults: (items: ExportResultItem[]) => ipcRenderer.invoke('cleaner:exportResults', items)
|
||||
},
|
||||
|
||||
// Order number resolver
|
||||
|
||||
Reference in New Issue
Block a user