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
7385dff1
Commit
7385dff1
authored
Jan 08, 2021
by
tianfen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf:站点管理
parent
d0ebbcde
Pipeline
#21954
skipped with stages
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
55 additions
and
23 deletions
+55
-23
close.png
src/assets/images/icons/close.png
+0
-0
InitDataBase.jsx
src/pages/database/InitDataBase.jsx
+29
-22
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+0
-0
SiteManage.less
src/pages/userCenter/siteManage/SiteManage.less
+22
-1
api.js
src/services/userCenter/siteManage/api.js
+4
-0
No files found.
src/assets/images/icons/close.png
0 → 100644
View file @
7385dff1
This diff was suppressed by a .gitattributes entry.
src/pages/database/InitDataBase.jsx
View file @
7385dff1
...
...
@@ -150,27 +150,27 @@ const InitDataBase = props => {
}
scroll
.
current
.
scrollTo
(
0
,
scroll
.
current
.
scrollHeight
-
570
);
},
1000
);
initDBv4
({
_version
:
9999
,
_dc
:
Date
.
now
(),
...
obj
,
})
.
then
(
res
=>
{
setCardLoading
(
false
);
if
(
res
.
GetMe
)
{
console
.
log
(
res
);
}
else
{
notification
.
error
({
message
:
'提示'
,
duration
:
15
,
description
:
res
.
Say
.
Message
||
'初始化失败'
,
});
}
})
.
catch
(
err
=>
{
setCardLoading
(
false
);
console
.
log
(
err
);
});
//
initDBv4({
//
_version: 9999,
//
_dc: Date.now(),
//
...obj,
//
})
//
.then(res => {
//
setCardLoading(false);
//
if (res.GetMe) {
//
console.log(res);
//
} else {
//
notification.error({
//
message: '提示',
//
duration: 15,
//
description: res.Say.Message || '初始化失败',
//
});
//
}
//
})
//
.catch(err => {
//
setCardLoading(false);
//
console.log(err);
//
});
};
const
onValuesChange
=
(
value
,
b
)
=>
{
form
.
setFieldsValue
(
value
);
...
...
@@ -605,7 +605,14 @@ const InitDataBase = props => {
</
Button
>,
]
}
>
<
div
ref=
{
scroll
}
style=
{
{
maxHeight
:
'570px'
,
overflowY
:
'auto'
}
}
>
<
div
ref=
{
scroll
}
style=
{
{
maxHeight
:
'570px'
,
overflowY
:
'auto'
,
marginRight
:
' -24px'
,
}
}
>
{
initContent
}
</
div
>
</
Modal
>
...
...
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
7385dff1
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManage/SiteManage.less
View file @
7385dff1
...
...
@@ -139,5 +139,25 @@
color:#f00
}
.siteCommit{
margin-top: 20px;
}
.siteSelectList{
border:1px solid #f5f5f5;
min-height: 200px;
.siteSelectUl{
margin: 0;
padding: 15px;
display: flex;
li{
width:200px;
height: 35px;
line-height: 35px;
background: rgba(24, 144, 255,0.16) url('../../../assets/images/icons/close.png') no-repeat 170px;
background-size: 20px;
padding-left: 10px;
margin: 0 10px 10px 0;
cursor: pointer;
}
}
}
\ No newline at end of file
src/services/userCenter/siteManage/api.js
View file @
7385dff1
...
...
@@ -38,3 +38,7 @@ export const getAllGroup = params =>
// 获取站点二级列表
export
const
getStationUserList
=
params
=>
get
(
`
${
PUBLISH_SERVICE
}
/UserCenter/GetStationUserList`
,
params
);
// 获取站点管理一二级列表+分页
export
const
groupUserPagingList
=
params
=>
post
(
`
${
PUBLISH_SERVICE
}
/UserCenter/GroupUserPagingList`
,
params
);
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