Commit 7c8cbfe5 authored by 陈前坚's avatar 陈前坚

perf: log

parent 0d96ef4d
...@@ -71,7 +71,7 @@ const ServiceLog = () => { ...@@ -71,7 +71,7 @@ const ServiceLog = () => {
key: 'CallTime', key: 'CallTime',
}, },
{ {
title: 'IP', title: '访问者IP',
dataIndex: 'IP', dataIndex: 'IP',
key: 'IP', key: 'IP',
}, },
...@@ -79,12 +79,12 @@ const ServiceLog = () => { ...@@ -79,12 +79,12 @@ const ServiceLog = () => {
title: '返回状态', title: '返回状态',
dataIndex: 'Result', dataIndex: 'Result',
key: 'Result', key: 'Result',
render: record => { // render: record => {
if (record === 0) { // if (record === 0) {
return '正常'; // return '正常';
} // }
return '错误'; // return '错误';
}, // },
}, },
{ {
title: '错误信息', title: '错误信息',
...@@ -102,16 +102,16 @@ const ServiceLog = () => { ...@@ -102,16 +102,16 @@ const ServiceLog = () => {
dataIndex: 'Method', dataIndex: 'Method',
key: 'Method', key: 'Method',
}, },
{ // {
title: '查询参数', // title: '查询参数',
dataIndex: 'QueryString', // dataIndex: 'QueryString',
key: 'QueryString', // key: 'QueryString',
}, // },
{ // {
title: '请求体', // title: '请求体',
dataIndex: 'Body', // dataIndex: 'Body',
key: 'Body', // key: 'Body',
}, // },
{ {
title: '耗时/ms', title: '耗时/ms',
dataIndex: 'ConsumerTime', dataIndex: 'ConsumerTime',
...@@ -154,15 +154,15 @@ const ServiceLog = () => { ...@@ -154,15 +154,15 @@ const ServiceLog = () => {
post(`${PUBLISH_SERVICE}/LogCenter${url}`, { post(`${PUBLISH_SERVICE}/LogCenter${url}`, {
// 获取日志表数据时PageSize设置为200,其他接口默认值20 // 获取日志表数据时PageSize设置为200,其他接口默认值20
PageSize: url === '/GetOMSLog' ? 200 : 20, PageSize: url === '/GetOMSLog' ? 200 : 20,
DateFrom: startTime.format('YYYY-MM-DD HH:mm:ss'), // DateFrom: startTime.format('YYYY-MM-DD HH:mm:ss'),
DateTo: endTime.format('YYYY-MM-DD HH:mm:ss'), // DateTo: endTime.format('YYYY-MM-DD HH:mm:ss'),
IP: '', // IP: '',
Module: url === '/GetOMSLog' ? searchWord : '', // Module: url === '/GetOMSLog' ? searchWord : '',
LogType: +logType, // LogType: url === '/GetOMSLog' ? +logType : '',
Description: '', // Description: '',
LoginName: '', // LoginName: '',
UserName: '', // UserName: '',
StaticsType: +timeInterval, // StaticsType: +timeInterval,
}) })
.then(res => { .then(res => {
if (res.code === 0) { 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