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
b803967b
Commit
b803967b
authored
Apr 16, 2021
by
shaoan123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化新运维中站点管理及角色管理的界面
parent
aba3f653
Pipeline
#26103
skipped with stages
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
25 deletions
+39
-25
projectMessage.jsx
...formCenter/schemeConfig/projectMessage/projectMessage.jsx
+4
-4
UserModal.jsx
src/pages/userCenter/roleManage/UserModal.jsx
+6
-5
UserModal.less
src/pages/userCenter/roleManage/UserModal.less
+9
-2
siteManage.jsx
src/pages/userCenter/siteManageV2/siteManage.jsx
+5
-5
siteManage.less
src/pages/userCenter/siteManageV2/siteManage.less
+15
-9
No files found.
src/pages/platformCenter/schemeConfig/projectMessage/projectMessage.jsx
View file @
b803967b
...
...
@@ -64,7 +64,7 @@ const VectorData = props => {
}
return
(
<>
<
Row
>
<
div
style=
{
{
width
:
'calc(100vw - 265px)'
}
}
>
<
div
className=
{
styles
.
tileBtn
}
>
<
Button
type=
"primary"
onClick=
{
()
=>
{
handleAdd
();
...
...
@@ -72,11 +72,10 @@ const VectorData = props => {
新增
</
Button
>
</
div
>
</
Row
>
<
Row
gutter=
{
16
}
>
<
Row
>
{
tileData
&&
tileData
.
length
?
tileData
.
map
((
item
,
index
)
=>
{
return
<
Col
key=
{
index
}
span=
{
8
}
>
<
Card
title=
{
<
div
><
span
className=
{
styles
.
schemeName
}
>
方案名
</
span
>
{
item
.
schemename
}
</
div
>
}
extra=
{
<
a
href=
"#"
>
return
<
Col
key=
{
index
}
span=
{
5
}
>
<
Card
title=
{
<
div
><
span
className=
{
styles
.
schemeName
}
>
方案名
</
span
>
{
item
.
schemename
}
</
div
>
}
extra=
{
<
a
href=
"#"
>
<
Popconfirm
title=
"是否删除该方案?"
okText=
"确认"
...
...
@@ -122,6 +121,7 @@ const VectorData = props => {
type=
{
type
}
formObj=
{
formObj
}
/>
</
div
>
</>
)
}
...
...
src/pages/userCenter/roleManage/UserModal.jsx
View file @
b803967b
...
...
@@ -4,7 +4,7 @@ import SiteModal from '@/components/Modal/SiteModa';
import
classnames
from
'classnames'
import
styles
from
'./UserModal.less'
;
import
lodash
,
{
clone
}
from
'lodash'
;
import
{
Card
,
Empty
,
Pagination
,
Checkbox
,
notification
,
Input
,
Row
,
Col
}
from
'antd'
import
{
Card
,
Empty
,
Pagination
,
Checkbox
,
notification
,
Input
,
Row
,
Col
}
from
'antd'
import
{
getWebModuleTree
,
chooseUserToStation
,
...
...
@@ -96,7 +96,7 @@ const UserModal = props => {
}).
then
(
res
=>
{
let
list
=
[]
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
if
(
res
.
data
&&
res
.
data
.
length
>
0
)
{
res
.
data
.
map
((
item
,
index
)
=>
{
list
.
push
({
...
...
@@ -355,16 +355,17 @@ const Panels2 = React.memo(props => {
{
/* <UpOutlined className={styles.siteIcon} /> */
}
<
UserOutlined
className=
{
styles
.
siteIcon
}
/>
<
p
style=
{
{
color
}
}
>
{
GroupName
}
</
p
>
</
div
>
<
div
className=
{
styles
.
sitePanelCon
}
>
<
Checkbox
key=
"0"
className=
{
styles
.
siteList
}
className=
{
styles
.
siteList
Title
}
checked=
{
isChecked
}
onClick=
{
e
=>
props
.
handleChangeAll
(
e
,
index
)
}
>
全选
</
Checkbox
>
</
div
>
<
div
className=
{
styles
.
sitePanelCon
}
>
{
Users
.
length
>
0
&&
Users
.
map
((
v
,
vIndex
)
=>
(
<
CheckBoxRow
...
...
src/pages/userCenter/roleManage/UserModal.less
View file @
b803967b
...
...
@@ -52,14 +52,21 @@
}
.siteList {
width: 120px;
// margin:0 0 15px 0;
padding: 0 0 15px 10px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.siteListTitle {
width: 199px;
// margin:0 0 15px 0;
padding: 0
0 15px 0
;
padding: 0
0 0 15px
;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.sitePanel {
margin: 0 0 10px 0;
}
...
...
src/pages/userCenter/siteManageV2/siteManage.jsx
View file @
b803967b
...
...
@@ -86,7 +86,7 @@ const SiteManageV2 = () => {
checkBoxLoading
:
false
,
});
const
[
total
,
setTotal
]
=
useState
(
0
);
// 分页总数
const
[
page
,
setPage
]
=
useState
({
pageNum
:
1
,
pageSize
:
5
});
const
[
page
,
setPage
]
=
useState
({
pageNum
:
1
,
pageSize
:
10
});
const
[
selectList
,
setSelectList
]
=
useState
([]);
// 选择列表数据
const
[
updatePageUser
,
setUpdatePageUser
]
=
useState
(
1
);
//
const
[
updateCheck
,
setUpdateCheck
]
=
useState
(
1
);
...
...
@@ -253,7 +253,7 @@ const SiteManageV2 = () => {
}
else
{
setCurrentStation
(
props
[
0
]);
}
setPage
({
pageNum
:
1
,
pageSize
:
5
});
setPage
({
pageNum
:
1
,
pageSize
:
10
});
}
// 弹出模态框
...
...
@@ -598,7 +598,7 @@ const SiteManageV2 = () => {
)
:
(
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
/>
)
}
<
Spin
spinning=
{
visibleParams
.
loading
}
>
<
Spin
spinning=
{
visibleParams
.
loading
}
>
{
dataList
.
map
((
item
,
index
)
=>
(
<
Panels
{
...
item
}
...
...
@@ -617,9 +617,9 @@ const SiteManageV2 = () => {
size=
"small"
total=
{
total
}
current=
{
page
.
pageNum
}
defaultPageSize=
"
5
"
defaultPageSize=
"
10
"
onChange=
{
handleChangePage
}
pageSizeOptions=
{
[
'
5
'
]
}
pageSizeOptions=
{
[
'
10
'
]
}
/>
</
div
>)
:
''
}
...
...
src/pages/userCenter/siteManageV2/siteManage.less
View file @
b803967b
...
...
@@ -87,6 +87,13 @@
}
.siteManageContainer {
.ant-card-body{
padding: 15px;
}
.ant-spin-container{
overflow-y: scroll;
height: calc(100vh - 410px);
}
.ant-tree-treenode {
width: 100% !important;
...
...
@@ -243,7 +250,7 @@
min-height: calc(100vh - 210px);
max-height: calc(100vh - 210px);
min-width: 600px;
overflow-y: scroll;
}
...
...
@@ -317,9 +324,9 @@
.siteSelectList {
border: 1px solid #f5f5f5;
height:
20
0px;
height:
12
0px;
overflow: auto;
margin-bottom:
5
0px;
margin-bottom:
2
0px;
.siteSelectUl {
margin: 0;
...
...
@@ -329,25 +336,24 @@
flex-wrap: wrap;
li {
width: 200px;
height: 35px;
line-height: 35px;
background: rgba(24, 144, 255, 0.16) url('../../../assets/images/icons/close.png') no-repeat 17
5
px;
background: rgba(24, 144, 255, 0.16) url('../../../assets/images/icons/close.png') no-repeat 17
0
px;
background-size: 20px;
background-position:center right;
margin: 0 10px 10px 0;
cursor: pointer;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
padding: 0
2
0px 0 10px;
padding: 0
4
0px 0 10px;
}
}
}
.siteline {
border-top: 1px solid #eee;
padding-top: 15px;
margin-top: 20px;
}
.siteBtn {
...
...
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