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
4608a0e7
Commit
4608a0e7
authored
Jan 15, 2021
by
陈前坚
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 去除IP字段
parent
6afbc591
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
index.js
src/pages/log/loginLog/index.js
+6
-6
index.js
src/pages/log/serviceLog/index.js
+10
-10
No files found.
src/pages/log/loginLog/index.js
View file @
4608a0e7
...
...
@@ -29,12 +29,12 @@ const LoginLog = () => {
);
const
columns
=
[
{
title
:
'IP'
,
dataIndex
:
'IP'
,
key
:
'IP'
,
fixed
:
'left'
,
},
//
{
//
title: 'IP',
//
dataIndex: 'IP',
//
key: 'IP',
//
fixed: 'left',
//
},
{
title
:
'登录时间'
,
dataIndex
:
'LoginTime'
,
...
...
src/pages/log/serviceLog/index.js
View file @
4608a0e7
...
...
@@ -31,7 +31,7 @@ const ServiceLog = () => {
const
[
endTime
,
setEndTime
]
=
useState
(
moment
(
new
Date
(),
'YYYY-MM-DD HH:mm:ss'
),
// 默认值,当前时间
);
const
[
logType
,
setLogType
]
=
useState
(
-
1
);
// 请求参数,日志类型,默认是正常,0:成功 -1:异常 9999:全部
const
[
logType
,
setLogType
]
=
useState
(
0
);
// 请求参数,日志类型,默认是正常,0:成功 -1:异常 9999:全部
const
[
searchWord
,
setSearchWord
]
=
useState
(
''
);
// 关键字
// 计算时间间隔(分钟)
...
...
@@ -62,7 +62,7 @@ const ServiceLog = () => {
dataIndex
:
'Path'
,
key
:
'Path'
,
fixed
:
'left'
,
width
:
34
0
,
width
:
40
0
,
},
{
title
:
'调用时间'
,
...
...
@@ -70,12 +70,12 @@ const ServiceLog = () => {
key
:
'CallTime'
,
width
:
160
,
},
{
title
:
'IP'
,
dataIndex
:
'DownstreamRequest'
,
key
:
'DownstreamRequest'
,
width
:
120
,
},
//
{
//
title: 'IP',
//
dataIndex: 'DownstreamRequest',
//
key: 'DownstreamRequest',
//
width: 120,
//
},
{
title
:
'返回状态'
,
dataIndex
:
'Result'
,
...
...
@@ -83,7 +83,7 @@ const ServiceLog = () => {
width
:
80
,
},
{
title
:
'
错误
信息'
,
title
:
'
异常
信息'
,
dataIndex
:
'ErrorMsg'
,
key
:
'ErrorMsg'
,
render
:
record
=>
{
...
...
@@ -248,7 +248,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
=
"
异
常"
onChange
=
{
changeStatus
}
>
<
Select
defaultValue
=
"
正
常"
onChange
=
{
changeStatus
}
>
<
Option
value
=
"9999"
>
全部
<
/Option
>
<
Option
value
=
"0"
>
正常
<
/Option
>
<
Option
value
=
"-1"
>
异常
<
/Option
>
...
...
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