Commit 46a718d6 authored by Sixiang_Zzb's avatar Sixiang_Zzb

批量上传失败错误提示修改,批量上传文件类型判断修改

parent 01a17551
......@@ -29,8 +29,10 @@ const ResultPageFailed = () => {
<div style={{ width: '100%', minWidth: 1020, padding: 34, backgroundColor: '#ffffff' }}>
<Result
status="error"
title="Error submit the file!"
subTitle={<p>server has been handled it ,please try again or back.</p>}
title="Errors occur during uploading!"
subTitle={
<p>Please download the file to review user information & try to upload again! </p>
}
extra={[
<Button type="primary" key="ok" onClick={handleDownload}>
{flag ? (
......
......@@ -102,7 +102,7 @@ const Users = (props: any) => {
return false;
}
if (
file.type !== 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ||
file.type !== 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' &&
file.type !== 'application/vnd.ms-excel'
) {
message.error(`${file.name} file format is incorrect!`);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment