Browse Source

导入

master
zhang_li 1 year ago
parent
commit
48c51e26b1
  1. 3
      src/components/ImportForm/src/ImportForm.vue

3
src/components/ImportForm/src/ImportForm.vue

@ -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(() => {

Loading…
Cancel
Save