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
8ca2d5c6
Commit
8ca2d5c6
authored
Jan 08, 2021
by
tianfen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pref:修改站点管理
parent
cb023e75
Pipeline
#21961
skipped with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+14
-8
SiteManage.less
src/pages/userCenter/siteManage/SiteManage.less
+2
-1
No files found.
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
8ca2d5c6
...
...
@@ -15,7 +15,7 @@ import {
Pagination
,
message
,
}
from
'antd'
;
import
lodash
from
'lodash'
;
import
lodash
,
{
clone
}
from
'lodash'
;
import
{
DoubleLeftOutlined
,
DoubleRightOutlined
,
...
...
@@ -105,8 +105,12 @@ const SiteManage = props => {
useEffect
(()
=>
{
if
(
!
currentStation
.
stationID
)
return
;
handleShowModal
(
'loading'
,
true
);
// setSelectList(lodash.cloneDeep([]));
getList
();
},
[
currentStation
,
page
.
pageNum
]);
},
[
currentStation
]);
useEffect
(()
=>
{
getList
();
},
[
page
.
pageNum
]);
const
getList
=
name
=>
{
let
params
=
{
stationId
:
+
currentStation
.
stationID
,
...
...
@@ -136,7 +140,7 @@ const SiteManage = props => {
});
}
handleShowModal
(
'loading'
,
false
);
setdataList
(
l
ist
);
setdataList
(
l
odash
.
cloneDeep
(
list
)
);
setTotal
(
res
.
data
.
TotalCount
);
}
});
...
...
@@ -190,6 +194,7 @@ const SiteManage = props => {
items
.
map
(
t
=>
(
<
List
.
Item
onClick=
{
()
=>
{
setSelectList
(
lodash
.
cloneDeep
([]));
setCurrentStation
(
t
);
}
}
key=
{
t
.
id
}
...
...
@@ -510,7 +515,10 @@ const SiteManage = props => {
<
div
className=
{
styles
.
siteSelectList
}
>
<
ul
className=
{
styles
.
siteSelectUl
}
>
{
selectList
.
map
((
item
,
index
)
=>
(
<
li
key=
{
item
.
userName
}
onClick=
{
()
=>
handleDel
(
index
)
}
>
<
li
key=
{
`${item.userName}${item.GroupId}`
}
onClick=
{
()
=>
handleDel
(
index
)
}
>
{
`${item.userName}(${item.GroupName})`
}
</
li
>
))
}
...
...
@@ -538,10 +546,8 @@ const Panels = React.memo(props => {
let
{
index
,
GroupId
,
GroupName
,
Users
,
isChecked
,
isShow
,
color
}
=
props
;
return
(
<
div
className=
{
styles
.
sitePanel
}
key=
{
GroupId
}
id=
{
`siteId${GroupId}`
}
>
<
div
className=
{
styles
.
sitePanelHead
}
onClick=
{
()
=>
props
.
handleChangeCollpase
(
GroupId
,
isShow
)
}
>
{
/* onClick={() => props.handleChangeCollpase(GroupId, isShow)} */
}
<
div
className=
{
styles
.
sitePanelHead
}
>
{
/* {isShow ? (
<UpOutlined className={styles.siteIcon} />
) : (
...
...
src/pages/userCenter/siteManage/SiteManage.less
View file @
8ca2d5c6
...
...
@@ -143,7 +143,8 @@
}
.siteSelectList{
border:1px solid #f5f5f5;
min-height: 200px;
height: 200px;
overflow: auto;
.siteSelectUl{
margin: 0;
padding: 15px;
...
...
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