feat: add import data quality center

This commit is contained in:
biss committed 2026-10-29 19:32:14 +08:00
1 parent 0552b3e424
commit b51b1868c0
33 files changed
+12824 -12

No files matched your search

+2 -1
View File
@@ -66,10 +66,11 @@ export async function downloadApiPostFile(
URL.revokeObjectURL(url)
}
export async function importExcel(path: string, file: File) {
export async function importExcel(path: string, file: File, validateOnly = false) {
const form = new FormData()
form.append('file', file)
return http.post(path, form, {
params: validateOnly ? { validateOnly: true } : undefined,
headers: { 'Content-Type': 'multipart/form-data' },
timeout: 60000,
})