Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
shenshaokai
jinfa-admin
Commits
6a6fdcc4
Commit
6a6fdcc4
authored
Jan 07, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 调整 Upload 组件数据结构
parent
126d2fcc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
2 deletions
+2
-2
index.tsx
src/components/NiceForm/components/AntUpload/index.tsx
+1
-1
index.tsx
...turnManage/components/RefundModal/UploadVoucher/index.tsx
+1
-1
index.ts
src/utils/index.ts
+0
-0
No files found.
src/components/NiceForm/components/AntUpload/index.tsx
View file @
6a6fdcc4
...
@@ -111,7 +111,7 @@ const normalizeFileList = fileList => {
...
@@ -111,7 +111,7 @@ const normalizeFileList = fileList => {
status
:
file
.
status
,
status
:
file
.
status
,
name
:
file
.
name
,
name
:
file
.
name
,
url
:
file
.
downloadURL
||
file
.
imgURL
||
file
.
url
,
url
:
file
.
downloadURL
||
file
.
imgURL
||
file
.
url
,
...
file
.
response
,
...
file
.
response
.
data
,
thumbUrl
:
file
.
imgURL
||
getImageByUrl
(
file
.
downloadURL
||
file
.
url
,
{
thumbUrl
:
file
.
imgURL
||
getImageByUrl
(
file
.
downloadURL
||
file
.
url
,
{
exclude
:
[
'.png'
,
'.jpg'
,
'.jpeg'
,
'.gif'
]
exclude
:
[
'.png'
,
'.jpg'
,
'.jpeg'
,
'.gif'
]
})
})
...
...
src/pages/returnManage/components/RefundModal/UploadVoucher/index.tsx
View file @
6a6fdcc4
...
@@ -100,7 +100,7 @@ const UploadVoucher: React.FC<UploadVoucherProps> = ({
...
@@ -100,7 +100,7 @@ const UploadVoucher: React.FC<UploadVoucherProps> = ({
...
rest
,
...
rest
,
fileList
:
fileList
.
map
(
item
=>
item
.
status
===
'done'
&&
({
fileList
:
fileList
.
map
(
item
=>
item
.
status
===
'done'
&&
({
name
:
item
.
name
,
name
:
item
.
name
,
proveUrl
:
item
.
data
.
url
,
proveUrl
:
item
.
url
,
})).
filter
(
Boolean
),
})).
filter
(
Boolean
),
},
},
},
'uploadVoucher'
);
},
'uploadVoucher'
);
...
...
src/utils/index.ts
View file @
6a6fdcc4
This diff is collapsed.
Click to expand it.
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