Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
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
linweijiong
jinfa-platform
Commits
43d82d14
Commit
43d82d14
authored
Jun 21, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 添加上传失败展示
parent
83bc3797
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
+15
-6
index.tsx
src/pages/member/components/QualitiesUpload/index.tsx
+8
-3
verify.tsx
src/pages/member/memberPrVerifyComingData/verify.tsx
+7
-3
No files found.
src/pages/member/components/QualitiesUpload/index.tsx
View file @
43d82d14
...
...
@@ -2,12 +2,12 @@
* @Author: XieZhiXiong
* @Date: 2021-06-04 17:26:51
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-
18 17:31:07
* @LastEditTime: 2021-06-
21 14:50:58
* @Description: 资质上传组件
*/
import
React
,
{
useState
}
from
'react'
;
import
{
Upload
}
from
'antd'
;
import
{
PlusOutlined
,
FileOutlined
,
LoadingOutlined
}
from
'@ant-design/icons'
;
import
{
PlusOutlined
,
FileOutlined
,
LoadingOutlined
,
ExclamationCircleOutlined
}
from
'@ant-design/icons'
;
import
{
UploadChangeParam
}
from
'antd/lib/upload'
;
import
styles
from
'./index.less'
;
...
...
@@ -54,7 +54,12 @@ const QualitiesUpload = (props) => {
const
isImg
=
imgReg
.
test
(
url
);
if
(
!
url
)
{
return
<
div
/>;
return
(
<
div
style=
{
{
color
:
'#ff4d4f'
}
}
>
<
ExclamationCircleOutlined
/>
<
div
style=
{
{
marginTop
:
8
}
}
>
上传失败
</
div
>
</
div
>
);
}
if
(
isImg
)
{
...
...
src/pages/member/memberPrVerifyComingData/verify.tsx
View file @
43d82d14
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 17:01:57
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-06-21 14:
28:50
* @LastEditTime: 2021-06-21 14:
31:52
* @Description: 审核入库资料
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
@@ -87,12 +87,16 @@ const MemberPrVerifyComingDataVerify: React.FC<{}> = () => {
validateId
,
...
value
,
depositDetails
:
comingData
,
qualities
:
qualifications
.
filter
((
item
)
=>
item
.
file
&&
item
.
file
[
0
]
&&
item
.
file
[
0
].
status
===
'done'
).
map
((
item
)
=>
({
qualities
:
(
qualifications
.
filter
((
item
)
=>
item
.
file
&&
item
.
file
[
0
]
&&
item
.
file
[
0
].
status
===
'done'
)
.
map
((
item
)
=>
({
url
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
url
:
''
,
name
:
item
.
file
&&
item
.
file
[
0
]
?
item
.
file
[
0
].
name
:
''
,
expireDay
:
item
.
expireDay
||
''
,
permanent
:
item
.
permanent
&&
item
.
permanent
[
0
]
?
item
.
permanent
[
0
]
:
0
,
})),
}))
),
};
const
msg
=
message
.
loading
({
content
:
'正在提交,请稍候...'
,
...
...
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