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
d7363ce2
Commit
d7363ce2
authored
Jan 08, 2021
by
Maofei94
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of g.civnet.cn:ReactWeb5/maintenance
parents
4d344e9e
9cc69699
Pipeline
#21966
skipped with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+15
-9
No files found.
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
d7363ce2
...
@@ -229,17 +229,21 @@ const SiteManage = props => {
...
@@ -229,17 +229,21 @@ const SiteManage = props => {
dataList
[
index
].
isChecked
=
e
.
target
.
checked
;
dataList
[
index
].
isChecked
=
e
.
target
.
checked
;
dataList
[
index
].
Users
.
forEach
(
item
=>
{
dataList
[
index
].
Users
.
forEach
(
item
=>
{
item
.
isChecked
=
e
.
target
.
checked
;
item
.
isChecked
=
e
.
target
.
checked
;
let
delIndex
=
selectList
.
findIndex
(
v
=>
v
.
GroupId
===
dataList
[
index
].
GroupId
&&
v
.
userID
===
item
.
userID
,
);
if
(
e
.
target
.
checked
)
{
if
(
e
.
target
.
checked
)
{
selectList
.
push
({
if
(
delIndex
===
-
1
)
{
GroupId
:
dataList
[
index
].
GroupId
,
selectList
.
push
({
GroupName
:
dataList
[
index
].
GroupName
,
GroupId
:
dataList
[
index
].
GroupId
,
userName
:
item
.
userName
,
GroupName
:
dataList
[
index
].
GroupName
,
userID
:
item
.
userID
,
userName
:
item
.
userName
,
isChecked
:
dataList
[
index
].
isChecked
,
userID
:
item
.
userID
,
});
isChecked
:
dataList
[
index
].
isChecked
,
});
}
}
}
if
(
!
e
.
target
.
checked
)
{
if
(
!
e
.
target
.
checked
)
{
let
delIndex
=
selectList
.
findIndex
(
v
=>
v
.
userID
===
item
.
userID
);
selectList
.
splice
(
delIndex
,
1
);
selectList
.
splice
(
delIndex
,
1
);
}
}
});
});
...
@@ -252,7 +256,9 @@ const SiteManage = props => {
...
@@ -252,7 +256,9 @@ const SiteManage = props => {
dataList
[
index
].
Users
[
vIndex
].
isChecked
=
e
.
target
.
checked
;
dataList
[
index
].
Users
[
vIndex
].
isChecked
=
e
.
target
.
checked
;
let
checked
=
isAllChecked
(
index
);
let
checked
=
isAllChecked
(
index
);
let
hasIndex
=
selectList
.
findIndex
(
let
hasIndex
=
selectList
.
findIndex
(
item
=>
item
.
userID
===
dataList
[
index
].
Users
[
vIndex
].
userID
,
item
=>
item
.
userID
===
dataList
[
index
].
Users
[
vIndex
].
userID
&&
item
.
GroupId
===
dataList
[
index
].
GroupId
,
);
);
dataList
[
index
].
isChecked
=
checked
;
dataList
[
index
].
isChecked
=
checked
;
if
(
hasIndex
===
-
1
)
{
if
(
hasIndex
===
-
1
)
{
...
...
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