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
13579cda
Commit
13579cda
authored
Feb 22, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Signed-off-by: cellee <893264950@qq.com>
parent
d475cdd7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
PdfUpload.tsx
src/components/Form/PdfUpload.tsx
+6
-4
No files found.
src/components/Form/PdfUpload.tsx
View file @
13579cda
/*
* @Author: your name
* @Date: 2021-02-01 14:54:48
* @LastEditTime: 2021-02-22 1
6:54:18
* @LastEditTime: 2021-02-22 1
7:14:12
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \tostumi\src\components\Form\PdfUpload.tsx
...
...
@@ -88,8 +88,12 @@ const PdfUpload: React.FC<PriceInputProps> = ({
// 抽取相同的属性合并
if
(
obj
.
length
>
0
)
{
let
filterValue
=
obj
.
filter
((
v
:
any
)
=>
{
return
v
.
name
==
detailvalue
[
i
].
description
;
return
(
v
.
name
==
detailvalue
[
i
].
description
&&
v
.
descriptionId
==
detailvalue
[
i
].
descriptionId
);
});
console
.
log
(
filterValue
);
if
(
filterValue
.
length
>
0
)
{
obj
.
forEach
((
n
:
any
)
=>
{
if
(
...
...
@@ -102,8 +106,6 @@ const PdfUpload: React.FC<PriceInputProps> = ({
status
:
'done'
,
url
:
detailvalue
[
i
].
pdfUrl
,
});
}
else
{
obj
.
push
(
item
);
}
});
}
else
{
...
...
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