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
9685d053
Commit
9685d053
authored
4 years ago
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: log
parent
83d59719
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
206 additions
and
77 deletions
+206
-77
index.js
src/pages/log/loginLog/index.js
+69
-64
index.less
src/pages/log/loginLog/index.less
+37
-0
index.less
src/pages/log/omsLog/index.less
+17
-6
index.less
src/pages/log/serviceLog/index.less
+17
-6
AppDic.js
src/pages/platformCenter/dictionary/AppDic.js
+0
-0
AppDic.less
src/pages/platformCenter/dictionary/AppDic.less
+45
-0
WebDic.js
src/pages/platformCenter/dictionary/WebDic.js
+0
-0
WebDic.less
src/pages/platformCenter/dictionary/WebDic.less
+21
-1
No files found.
src/pages/log/loginLog/index.js
View file @
9685d053
...
...
@@ -14,6 +14,7 @@ import { Chart, Interval, Tooltip, Axis } from 'bizcharts';
import
{
DataSet
}
from
'@antv/data-set'
;
import
moment
from
'moment'
;
import
{
post
,
PUBLISH_SERVICE
}
from
'@/services/index'
;
import
styles
from
'./index.less'
;
const
ServiceLog
=
()
=>
{
const
[
loading
,
setLoading
]
=
useState
(
false
);
// 源数据
...
...
@@ -138,72 +139,76 @@ const ServiceLog = () => {
return
(
<>
<
Row
style
=
{{
padding
:
'10px'
,
background
:
'white'
}}
>
<
Col
span
=
{
24
}
>
<
span
style
=
{{
lineHeight
:
2
}}
>
时间:
<
/span
>
<
DatePicker
showTime
format
=
"YYYY-MM-DD HH:mm:ss"
placeholder
=
"起始时间"
value
=
{
startTime
}
onChange
=
{
changeStartTime
}
allowClear
=
{
false
}
/
>
<
SwapRightOutlined
style
=
{{
lineHeight
:
2
}}
/
>
<
DatePicker
showTime
format
=
"YYYY-MM-DD HH:mm:ss"
placeholder
=
"结束时间"
value
=
{
endTime
}
onChange
=
{
changeEndTime
}
style
=
{{
marginRight
:
'10px'
}}
allowClear
=
{
false
}
/
>
<
Button
onClick
=
{()
=>
setTime
(
1
)}
>
近
1
小时
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
6
)}
>
近
6
小时
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
12
)}
>
近
12
小时
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
)}
>
近
1
天
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
*
7
)}
>
近
1
周
<
/Button
>
<
/Col
>
<
/Row
>
<
Spin
spinning
=
{
loading
}
tip
=
"loading"
>
<
Row
style
=
{{
padding
:
'10px'
,
background
:
'white'
}}
>
<
Col
span
=
{
12
}
>
<
Chart
height
=
{
316
}
width
=
{
400
}
autoFit
data
=
{
IPCount
}
interactions
=
{[
'active-region'
]}
padding
=
"auto"
>
<
Axis
name
=
"IP"
label
=
"null"
title
=
{{
offset
:
20
,
position
:
'end'
}}
/
>
<
Axis
name
=
"计数"
title
/>
<
Interval
position
=
"IP*计数"
/>
<
Tooltip
shared
/>
<
/Chart
>
<
div
className
=
{
styles
.
serviceLog
}
>
<
Row
className
=
{
styles
.
head
}
>
<
Col
span
=
{
24
}
>
<
span
style
=
{{
lineHeight
:
2
}}
>
时间:
<
/span
>
<
DatePicker
showTime
format
=
"YYYY-MM-DD HH:mm:ss"
placeholder
=
"起始时间"
value
=
{
startTime
}
onChange
=
{
changeStartTime
}
allowClear
=
{
false
}
/
>
<
SwapRightOutlined
style
=
{{
lineHeight
:
2
}}
/
>
<
DatePicker
showTime
format
=
"YYYY-MM-DD HH:mm:ss"
placeholder
=
"结束时间"
value
=
{
endTime
}
onChange
=
{
changeEndTime
}
style
=
{{
marginRight
:
'10px'
}}
allowClear
=
{
false
}
/
>
<
Button
onClick
=
{()
=>
setTime
(
1
)}
>
近
1
小时
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
6
)}
>
近
6
小时
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
12
)}
>
近
12
小时
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
)}
>
近
1
天
<
/Button
>
<
Button
onClick
=
{()
=>
setTime
(
24
*
7
)}
>
近
1
周
<
/Button
>
<
/Col
>
<
/Row
>
<
Table
size
=
"small"
bordered
columns
=
{
columns
}
dataSource
=
{
data0
}
scroll
=
{{
x
:
'max-content'
}}
pagination
=
{{
showTotal
:
(
total
,
range
)
=>
`第
${
range
[
0
]}
-
${
range
[
1
]}
条/共
${
total
}
条`
,
pageSizeOptions
:
[
10
,
20
,
50
,
100
],
defaultPageSize
:
10
,
showQuickJumper
:
true
,
showSizeChanger
:
true
,
}}
/
>
<
/Spin
>
<
Spin
spinning
=
{
loading
}
tip
=
"loading"
>
<
Row
className
=
{
styles
.
chart
}
>
<
Col
span
=
{
12
}
>
<
Chart
height
=
{
316
}
width
=
{
400
}
autoFit
data
=
{
IPCount
}
interactions
=
{[
'active-region'
]}
padding
=
"auto"
>
<
Axis
name
=
"IP"
label
=
"null"
title
=
{{
offset
:
20
,
position
:
'end'
}}
/
>
<
Axis
name
=
"计数"
title
/>
<
Interval
position
=
"IP*计数"
/>
<
Tooltip
shared
/>
<
/Chart
>
<
/Col
>
<
/Row
>
<
div
className
=
{
styles
.
table
}
>
<
Table
size
=
"small"
bordered
columns
=
{
columns
}
dataSource
=
{
data0
}
scroll
=
{{
x
:
'max-content'
}}
pagination
=
{{
showTotal
:
(
total
,
range
)
=>
`第
${
range
[
0
]}
-
${
range
[
1
]}
条/共
${
total
}
条`
,
pageSizeOptions
:
[
10
,
20
,
50
,
100
],
defaultPageSize
:
10
,
showQuickJumper
:
true
,
showSizeChanger
:
true
,
}}
/
>
<
/div
>
<
/Spin
>
<
/div
>
<
/
>
);
};
...
...
This diff is collapsed.
Click to expand it.
src/pages/log/loginLog/index.less
0 → 100644
View file @
9685d053
.serviceLog{
.head{
padding: 10px;
background: white;
margin-bottom: 2px;
min-width: 1030px;
}
.chart{
padding: 16px;
background: white;
}
.table{
border-top: 1px solid #f0eded;
// overflow: auto;//不要这个,pagination否则无法固定底部
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
}
.ant-table-content{
height:calc(100vh - 518px);
border-right: white;
overflow: auto !important;
}
.ant-pagination{
z-index: 999;
border-top: 1px solid #f0eded;
}
.ant-table-pagination{
padding-right: 12px;
background: white;
margin: 1px 0;
padding:8px;
padding-right: 20px;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/log/omsLog/index.less
View file @
9685d053
...
...
@@ -10,17 +10,27 @@
background: white;
}
.table{
height:calc(100vh - 452px)
;
overflow: auto;
border-top: 1px solid #f0eded
;
// overflow: auto;//不要这个,pagination否则无法固定底部
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
}
.ant-table-content{
height:calc(100vh - 500px);
border-right: white;
overflow: auto !important;
}
.ant-pagination{
z-index: 999;
border-top: 1px solid #f0eded;
}
.ant-table-pagination{
padding-right: 12px;
background: white;
margin: 2px 0px;
padding:6px 10px;
}
}
margin: 1px 0;
padding:8px;
padding-right: 20px;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/log/serviceLog/index.less
View file @
9685d053
...
...
@@ -10,17 +10,27 @@
background: white;
}
.table{
height:calc(100vh - 452px)
;
overflow: auto;
border-top: 1px solid #f0eded
;
// overflow: auto;//不要这个,pagination否则无法固定底部
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
}
.ant-table-content{
height:calc(100vh - 500px);
border-right: white;
overflow: auto !important;
}
.ant-pagination{
z-index: 999;
border-top: 1px solid #f0eded;
}
.ant-table-pagination{
padding-right: 12px;
background: white;
margin: 2px 0px;
padding:6px 10px;
}
}
margin: 1px 0;
padding:8px;
padding-right: 20px;
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/dictionary/AppDic.js
View file @
9685d053
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/dictionary/AppDic.less
0 → 100644
View file @
9685d053
.AppDic{
overflow: auto;
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
}
.ant-pagination{
z-index: 999;
background: white;
margin: 2px 0px;
padding:6px 10px;
}
.ant-table-tbody{
.clickRowStyle{
background: #cfe7fd;
}
.clickRowStyle:hover>td{
background: #aed8fa;
}
}
.ant-card-body{
padding: 10px !important;
}
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
}
.ant-table-content{
height:calc(100vh - 258px);
border-right: white;
overflow: auto !important;
}
.ant-pagination{
z-index: 999;
border-top: 1px solid #f0eded;
}
.ant-table-pagination{
padding-right: 12px;
background: white;
margin: 1px 0;
padding:8px;
padding-right: 20px;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/dictionary/WebDic.js
View file @
9685d053
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/dictionary/WebDic.less
View file @
9685d053
.WebDic{
overflow: auto;
height:calc(100vh-200px);
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
...
...
@@ -22,4 +21,24 @@
.ant-card-body{
padding: 10px !important;
}
.ant-table-thead tr th{
font-weight: 600;
color:rgba(0,0,0,0.85);
}
.ant-table-content{
height:calc(100vh - 488px);
border-right: white;
overflow: auto !important;
}
.ant-pagination{
z-index: 999;
border-top: 1px solid #f0eded;
}
.ant-table-pagination{
padding-right: 12px;
background: white;
margin: 1px 0;
padding:8px;
padding-right: 20px;
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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