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
前端-吴智勇
jinfa-platform
Commits
ff88bc28
Commit
ff88bc28
authored
Jan 18, 2022
by
xiexiuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix: 业务员回现
parent
7ccd0e08
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
memberDetail.tsx
src/pages/authConfig/memberSystem/memberDetail.tsx
+16
-10
No files found.
src/pages/authConfig/memberSystem/memberDetail.tsx
View file @
ff88bc28
...
...
@@ -158,9 +158,12 @@ const MemberDetail: React.FC<{}> = () => {
menuId
:
node
?
node
.
id
:
nodeRecord
.
id
,
...
params
,
});
console
.
log
(
data
,
'data'
)
if
(
!
isAdd
&&
data
.
orgIds
)
{
let
plateformTreeDataList
=
mapkey
(
plateformTreeData
,
data
.
orgIds
)
console
.
log
(
plateformTreeData
,
'plateformTreeData'
);
console
.
log
(
data
.
orgIds
,
'data.orgIds'
);
let
plateformTreeDataList
=
mapkey
(
plateformTreeData
,
data
.
orgIds
,
[])
console
.
log
(
plateformTreeDataList
)
setplateformTreeList
(
plateformTreeDataList
)
}
setButtonAuth
(
node
.
id
,
data
);
...
...
@@ -388,8 +391,7 @@ const MemberDetail: React.FC<{}> = () => {
</
Space
>
);
const
mapkey
=
(
plateformTreeData
:
any
,
selectKeys
:
any
)
=>
{
let
plateformTreeDataList
=
[];
const
mapkey
=
(
plateformTreeData
:
any
,
selectKeys
:
any
,
plateformTreeDataList
=
[])
=>
{
plateformTreeData
.
map
((
item
:
any
)
=>
{
if
(
selectKeys
.
includes
(
item
.
id
))
{
plateformTreeDataList
.
push
(
...
...
@@ -398,13 +400,14 @@ const MemberDetail: React.FC<{}> = () => {
title
:
item
.
title
}
)
if
(
item
.
children
)
{
const
arr
=
mapkey
(
item
.
children
,
selectKeys
)
plateformTreeDataList
=
[...
plateformTreeDataList
,
...
arr
];
if
(
item
.
children
.
length
>
0
)
{
const
arr
=
mapkey
(
item
.
children
,
selectKeys
,
plateformTreeDataList
)
plateformTreeDataList
=
[...
arr
];
}
}
else
{
const
arr
=
mapkey
(
item
.
children
,
selectKeys
,
plateformTreeDataList
)
plateformTreeDataList
=
[...
arr
];
}
})
return
plateformTreeDataList
}
...
...
@@ -422,7 +425,10 @@ const MemberDetail: React.FC<{}> = () => {
{
orgIds
:
selectKeys
},
),
});
let
plateformTreeDataList
=
mapkey
(
plateformTreeData
,
selectKeys
)
console
.
log
(
plateformTreeData
,
'plateformTreeData'
);
console
.
log
(
selectKeys
,
'selectKeys'
);
let
plateformTreeDataList
=
mapkey
(
plateformTreeData
,
selectKeys
,
[])
console
.
log
(
plateformTreeDataList
)
setplateformTreeList
(
plateformTreeDataList
)
// console.log(plateformTreeDataList, 'plateformTreeData')
setOrgModalVisible
(
false
);
...
...
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