|
|
@ -178,9 +178,12 @@ const submitForm = async () => { |
|
|
|
const emits = defineEmits(['success']) |
|
|
|
const submitFormSuccess = (response: any) => { |
|
|
|
formLoading.value = true |
|
|
|
console.log(response) |
|
|
|
if(response){ |
|
|
|
if(response.code == 500){ |
|
|
|
uploadRef.value!.clearFiles() |
|
|
|
message.error('导入失败') |
|
|
|
formLoading.value = false |
|
|
|
return; |
|
|
|
} else if (response.data.errorCount > 0) { |
|
|
|
message.confirm('文件中有部分数据导入失败,是否下载失败数据?').then(() => { |
|
|
|