1、完善客商模块
2、完善基础数据模块 3、完善规范
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { importBlob } from '@/api/common';
|
||||
import { downloadXls } from '@/utils/util';
|
||||
import { ElLoading } from 'element-plus';
|
||||
import NProgress from 'nprogress';
|
||||
import 'nprogress/nprogress.css';
|
||||
|
||||
@@ -65,6 +66,11 @@ export const handleImportExcel = async (vm, option, column, businessName, onSucc
|
||||
}
|
||||
|
||||
NProgress.start();
|
||||
const loading = ElLoading.service({
|
||||
lock: true,
|
||||
text: '导入中',
|
||||
background: 'rgba(255, 255, 255, 0.7)',
|
||||
});
|
||||
try {
|
||||
const res = await importBlob(column.action, file);
|
||||
if (isExcelResponse(res)) {
|
||||
@@ -83,7 +89,7 @@ export const handleImportExcel = async (vm, option, column, businessName, onSucc
|
||||
}
|
||||
return;
|
||||
}
|
||||
vm.$message.success(result.msg || '导入数据成功');
|
||||
vm.$message.success('导入完成');
|
||||
}
|
||||
vm.excelBox = false;
|
||||
vm.excelForm = {};
|
||||
@@ -103,6 +109,7 @@ export const handleImportExcel = async (vm, option, column, businessName, onSucc
|
||||
option.onError(error);
|
||||
}
|
||||
} finally {
|
||||
loading.close();
|
||||
NProgress.done();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user