Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
e41f5166
Commit
e41f5166
authored
Mar 21, 2022
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: '修改角色管理复选框问题'
parent
fb74cd23
Pipeline
#46288
passed with stages
in 6 minutes 54 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
index.jsx
src/components/CheckGroup/index.jsx
+1
-0
RoleManage.jsx
src/pages/userCenter/roleManage/RoleManage.jsx
+9
-8
No files found.
src/components/CheckGroup/index.jsx
View file @
e41f5166
...
...
@@ -44,6 +44,7 @@ const ListCard = props => {
// 首次进入处理数据后续不触发
useEffect
(()
=>
{
console
.
log
(
checkList
);
let
aa
=
dataList
.
map
(
l
=>
checkChildrenByCondition
(
l
,
it
=>
[
getId
(
it
)],
true
,
'map'
).
flat
(
Infinity
))
.
flat
(
Infinity
)
...
...
src/pages/userCenter/roleManage/RoleManage.jsx
View file @
e41f5166
...
...
@@ -188,14 +188,15 @@ const SiteManage = () => {
list
.
push
({
...
defaultConfig
,
...
item
});
});
const
finalList
=
buildMap
(
list
);
// if (finalList[0].text == '地图组件') {
// if (finalList[0].children.find(i => i.isChecked == false)) {
// finalList[0].isChecked = false;
// } else {
// finalList[0].isChecked = true;
// }
// }
// console.log(finalList);
if
(
finalList
[
0
].
text
==
'地图组件'
)
{
if
(
finalList
[
0
].
children
.
find
(
i
=>
i
.
isChecked
==
false
))
{
finalList
[
0
].
isChecked
=
false
;
}
else
{
finalList
[
0
].
isChecked
=
true
;
}
finalList
[
0
].
id
=
1
;
}
console
.
log
(
finalList
);
setdataList
(
finalList
);
setValueList
(
finalList
...
...
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