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
ab3d761e
Commit
ab3d761e
authored
Jun 20, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cherry-pick-af81160a' into 'v2-220618'
Merge branch 'fix-v2-220418-1-adminListStyle' into 'v2-220618' See merge request linkseeks-design/pro-admin!104
parents
b3e8986a
fce888b5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
11 deletions
+12
-11
index.tsx
src/pages/memberManage/components/ListWrap/index.tsx
+3
-2
index.tsx
...mberManage/memberMaintain/components/MemberForm/index.tsx
+9
-9
No files found.
src/pages/memberManage/components/ListWrap/index.tsx
View file @
ab3d761e
...
...
@@ -61,7 +61,8 @@ const ListWrap: React.FC<ListType> = (props) => {
currentListData
.
length
&&
currentListData
.
forEach
(
item
=>
{
let
obj
=
{}
item
.
map
(
val
=>
{
return
obj
[
val
.
fieldName
]
=
val
.
fieldValue
obj
[
val
.
fieldName
]
=
val
.
fieldValue
obj
.
key
=
val
.
fieldOrder
})
sumData
.
push
(
obj
)
})
...
...
@@ -71,7 +72,7 @@ const ListWrap: React.FC<ListType> = (props) => {
},
[
currentListData
])
return
(
<
Table
columns=
{
tableCoumns
}
pagination=
{
false
}
dataSource=
{
tableData
}
style=
{
{
width
:
'95%'
}
}
/>
<
Table
rowKey=
'key'
columns=
{
tableCoumns
}
pagination=
{
false
}
dataSource=
{
tableData
}
style=
{
{
width
:
'95%'
}
}
/>
)
}
...
...
src/pages/memberManage/memberMaintain/components/MemberForm/index.tsx
View file @
ab3d761e
...
...
@@ -85,9 +85,10 @@ const MemberForm: React.FC<MemberFormProps> = ({
...
rest
}:
any
=
infoRes
.
data
;
// 注册资料处理
const
detail
=
{}
,
list
=
[]
const
detail
=
{}
for
(
let
i
=
0
;
i
<
groups
.
length
;
i
++
)
{
const
item
=
groups
[
i
];
const
item
=
groups
[
i
]
if
(
item
.
elements
)
{
for
(
let
j
=
0
;
j
<
item
.
elements
.
length
;
j
++
)
{
const
ele
=
item
.
elements
[
j
];
...
...
@@ -95,14 +96,13 @@ const MemberForm: React.FC<MemberFormProps> = ({
detail
[
ele
.
fieldName
]
=
ele
.
fieldValue
;
}
if
(
ele
.
fieldType
===
'list'
)
{
ele
.
registers
&&
ele
.
registers
.
forEach
(
element
=>
{
let
obj
=
{}
element
.
map
(
val
=>
{
detail
[
ele
.
fieldName
]
=
ele
.
registers
?.
map
(
element
=>
{
let
obj
=
{}
;
element
.
forEach
(
val
=>
{
obj
[
val
.
fieldName
]
=
val
.
fieldValue
;
})
list
.
push
(
obj
)
})
detail
[
ele
.
fieldName
]
=
list
});
return
obj
;
});
}
}
}
...
...
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