Commit 46a718d6 authored by Sixiang_Zzb's avatar Sixiang_Zzb

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

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