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
0b189001
Commit
0b189001
authored
Jul 29, 2021
by
皮倩雯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改服务监控界面UI
parent
74e1c032
Pipeline
#32229
skipped with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
4 deletions
+27
-4
index.js
src/pages/log/loginLog/index.js
+7
-2
index.less
src/pages/log/loginLog/index.less
+14
-1
index.js
src/pages/log/serviceLog/index.js
+2
-1
index.less
src/pages/log/serviceLog/index.less
+4
-0
No files found.
src/pages/log/loginLog/index.js
View file @
0b189001
...
...
@@ -9,7 +9,7 @@ import {
message
,
Spin
,
}
from
'antd'
;
import
{
SwapRightOutlined
}
from
'@ant-design/icons'
;
import
{
SwapRightOutlined
,
SyncOutlined
}
from
'@ant-design/icons'
;
import
{
Chart
,
Interval
,
Tooltip
,
Axis
}
from
'bizcharts'
;
import
{
DataSet
}
from
'@antv/data-set'
;
import
moment
from
'moment'
;
...
...
@@ -129,7 +129,9 @@ const LoginLog = () => {
),
);
};
const
handleReset
=
()
=>
{
setStartTime
(
moment
().
startOf
(
'day'
))
}
return
(
<>
<
div
className
=
{
styles
.
loginLog
}
>
...
...
@@ -160,6 +162,9 @@ const LoginLog = () => {
<
Button
onClick
=
{()
=>
setTime
(
24
*
7
)}
>
近
1
周
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
14
*
24
)}
>
近
2
周
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
30
*
24
)}
>
近
1
月
<
/Button
>
<
Button
icon
=
{
<
SyncOutlined
className
=
{
styles
.
icon
}
/>} onClick={handleReset} style={{ marginLeft: '25px', verticalAlign:'middle', marginTop:'-3px' }}
>
重置
<
/Button
>
<
/Col
>
<
/Row
>
<
Spin
spinning
=
{
loading
}
tip
=
"loading"
>
...
...
src/pages/log/loginLog/index.less
View file @
0b189001
...
...
@@ -15,6 +15,7 @@
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
background-color:#F6F9FE;
}
.ant-table-body{
height:calc(100vh - 208px);
...
...
@@ -32,5 +33,16 @@
padding:8px;
padding-right: 20px;
}
}
.ant-table.ant-table-small {
width: 99%;
margin: 10px auto;
}
}
.ant-spin-container {
background-color: white;
}
.icon{
margin-top: -5px !important;
vertical-align: text-bottom;
}
}
\ No newline at end of file
src/pages/log/serviceLog/index.js
View file @
0b189001
...
...
@@ -283,7 +283,7 @@ const ServiceLog = () => {
<
Button
onClick
=
{()
=>
setTime
(
24
*
60
,
'3'
)}
>
近
1
天
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
*
7
*
60
,
'4'
)}
>
近
1
周
<
/Button
>
<
span
style
=
{{
marginLeft
:
'20px'
}}
>
返回状态:
<
/span
>
<
Select
defaultValue
=
'全部'
value
=
{
logType
}
onChange
=
{
changeStatus
}
>
<
Select
defaultValue
=
'全部'
value
=
{
logType
}
onChange
=
{
changeStatus
}
className
=
{
styles
.
sel
}
>
<
Option
value
=
"9999"
>
全部
<
/Option
>
<
Option
value
=
"0"
>
正常
<
/Option
>
<
Option
value
=
"-1"
>
异常
<
/Option
>
...
...
@@ -314,6 +314,7 @@ const ServiceLog = () => {
size
=
"small"
value
=
{
timeInterval
}
onChange
=
{
selectChange
}
className
=
{
styles
.
sel
}
>
<
Option
value
=
"1"
>
每分钟
<
/Option
>
<
Option
value
=
"2"
>
每
5
分钟
<
/Option
>
...
...
src/pages/log/serviceLog/index.less
View file @
0b189001
...
...
@@ -55,4 +55,7 @@
margin-top: -5px !important;
vertical-align: text-bottom;
}
.sel{
width: 100px;
}
}
\ No newline at end of file
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