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
37bf2d2e
Commit
37bf2d2e
authored
Dec 11, 2020
by
Maofei94
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of g.civnet.cn:ReactWeb5/maintenance
parents
375de4b6
7c8cbfe5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
26 deletions
+26
-26
index.js
src/pages/log/omsLog/index.js
+26
-26
No files found.
src/pages/log/omsLog/index.js
View file @
37bf2d2e
...
...
@@ -71,7 +71,7 @@ const ServiceLog = () => {
key
:
'CallTime'
,
},
{
title
:
'IP'
,
title
:
'
访问者
IP'
,
dataIndex
:
'IP'
,
key
:
'IP'
,
},
...
...
@@ -79,12 +79,12 @@ const ServiceLog = () => {
title
:
'返回状态'
,
dataIndex
:
'Result'
,
key
:
'Result'
,
render
:
record
=>
{
if
(
record
===
0
)
{
return
'正常'
;
}
return
'错误'
;
},
//
render: record => {
//
if (record === 0) {
//
return '正常';
//
}
//
return '错误';
//
},
},
{
title
:
'错误信息'
,
...
...
@@ -102,16 +102,16 @@ const ServiceLog = () => {
dataIndex
:
'Method'
,
key
:
'Method'
,
},
{
title
:
'查询参数'
,
dataIndex
:
'QueryString'
,
key
:
'QueryString'
,
},
{
title
:
'请求体'
,
dataIndex
:
'Body'
,
key
:
'Body'
,
},
//
{
//
title: '查询参数',
//
dataIndex: 'QueryString',
//
key: 'QueryString',
//
},
//
{
//
title: '请求体',
//
dataIndex: 'Body',
//
key: 'Body',
//
},
{
title
:
'耗时/ms'
,
dataIndex
:
'ConsumerTime'
,
...
...
@@ -154,15 +154,15 @@ const ServiceLog = () => {
post
(
`
${
PUBLISH_SERVICE
}
/LogCenter
${
url
}
`
,
{
// 获取日志表数据时PageSize设置为200,其他接口默认值20
PageSize
:
url
===
'/GetOMSLog'
?
200
:
20
,
DateFrom
:
startTime
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
DateTo
:
endTime
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
IP
:
''
,
Module
:
url
===
'/GetOMSLog'
?
searchWord
:
''
,
LogType
:
+
logType
,
Description
:
''
,
LoginName
:
''
,
UserName
:
''
,
StaticsType
:
+
timeInterval
,
//
DateFrom: startTime.format('YYYY-MM-DD HH:mm:ss'),
//
DateTo: endTime.format('YYYY-MM-DD HH:mm:ss'),
//
IP: '',
//
Module: url === '/GetOMSLog' ? searchWord : '',
// LogType: url === '/GetOMSLog' ? +logType : ''
,
//
Description: '',
//
LoginName: '',
//
UserName: '',
//
StaticsType: +timeInterval,
})
.
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
...
...
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