Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Maple
TOSTUMI
Commits
46a718d6
Commit
46a718d6
authored
Jan 25, 2021
by
Sixiang_Zzb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量上传失败错误提示修改,批量上传文件类型判断修改
parent
01a17551
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ResultPageFailed.tsx
...es/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
+4
-2
Users.tsx
src/pages/UserManagement/LIFEUserManagement/Users.tsx
+1
-1
No files found.
src/pages/UserManagement/LIFEUserManagement/ResultPageFailed.tsx
View file @
46a718d6
...
...
@@ -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
?
(
...
...
src/pages/UserManagement/LIFEUserManagement/Users.tsx
View file @
46a718d6
...
...
@@ -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!`
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment