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
e8f870c6
Commit
e8f870c6
authored
Feb 14, 2022
by
xiexiuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:权限按钮
parent
6f236680
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
memberDetail.tsx
src/pages/authConfig/memberSystem/memberDetail.tsx
+5
-4
No files found.
src/pages/authConfig/memberSystem/memberDetail.tsx
View file @
e8f870c6
...
@@ -310,6 +310,7 @@ const MemberDetail: React.FC<{}> = () => {
...
@@ -310,6 +310,7 @@ const MemberDetail: React.FC<{}> = () => {
// console.log(cheIds, 'cheIds')
// console.log(cheIds, 'cheIds')
// 判断后台返回的选中id 是否和和当前选中id是一样
// 判断后台返回的选中id 是否和和当前选中id是一样
const
flag
=
treeCheckIds
.
join
(
','
)
===
cheIds
.
join
(
','
)
?
true
:
false
;
const
flag
=
treeCheckIds
.
join
(
','
)
===
cheIds
.
join
(
','
)
?
true
:
false
;
// 如果后台返回的选中的id 和 当前选中id 是一样 则午休修改 提交一个空数据过去
// 如果后台返回的选中的id 和 当前选中id 是一样 则午休修改 提交一个空数据过去
const
publicarr
=
[];
const
publicarr
=
[];
let
list
=
[];
let
list
=
[];
...
@@ -348,17 +349,17 @@ const MemberDetail: React.FC<{}> = () => {
...
@@ -348,17 +349,17 @@ const MemberDetail: React.FC<{}> = () => {
list
=
publicarr
.
filter
((
element
,
index
,
self
)
=>
{
list
=
publicarr
.
filter
((
element
,
index
,
self
)
=>
{
return
self
.
findIndex
(
x
=>
x
.
menuId
===
element
.
menuId
)
===
index
return
self
.
findIndex
(
x
=>
x
.
menuId
===
element
.
menuId
)
===
index
})
})
// console.log(list);
const
publicParams
=
{
const
publicParams
=
{
...
values
,
...
values
,
imFlag
:
!!
values
.
imFlag
,
imFlag
:
!!
values
.
imFlag
,
auth
:
(
flag
&&
dataId
.
length
<
0
)
?
[]
:
list
.
map
(
v
=>
({
auth
:
(
flag
&&
dataId
.
length
<
0
)
?
[]
:
list
.
map
(
v
=>
({
menuId
:
v
.
menuId
,
menuId
:
v
.
menuId
,
buttonIds
:
(
Object
.
keys
(
authInfos
).
length
!=
0
&&
authInfos
[
v
.
menuId
]
.
buttonIds
)
?
authInfos
[
v
.
menuId
].
buttonIds
:
[],
buttonIds
:
(
Object
.
keys
(
authInfos
).
length
!=
0
&&
authInfos
[
v
.
menuId
])
?
authInfos
[
v
.
menuId
].
buttonIds
:
[],
checked
:
v
.
checked
,
checked
:
v
.
checked
,
hasDataAuth
:
(
Object
.
keys
(
authInfos
).
length
!=
0
&&
authInfos
[
v
.
menuId
]
?.
hasDataAuth
)
?
authInfos
[
v
.
menuId
]?.
hasDataAuth
:
0
,
hasDataAuth
:
(
Object
.
keys
(
authInfos
).
length
!=
0
&&
authInfos
[
v
.
menuId
])
?
authInfos
[
v
.
menuId
]?.
hasDataAuth
:
0
,
orgIds
:
(
Object
.
keys
(
authInfos
).
length
!=
0
&&
authInfos
[
v
.
menuId
]
?.
hasDataAuth
)
?
authInfos
[
v
.
menuId
]?.
orgIds
:
[],
orgIds
:
(
Object
.
keys
(
authInfos
).
length
!=
0
&&
authInfos
[
v
.
menuId
])
?
authInfos
[
v
.
menuId
]?.
orgIds
:
[],
}))
}))
};
};
...
...
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