Commit 37bf2d2e authored by Maofei94's avatar Maofei94

Merge branch 'master' of g.civnet.cn:ReactWeb5/maintenance

parents 375de4b6 7c8cbfe5
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment