Commit a0bf59bd authored by 陈前坚's avatar 陈前坚

perf: 服务日志

parent 2f4d379e
...@@ -77,7 +77,7 @@ const ServiceLog = () => { ...@@ -77,7 +77,7 @@ const ServiceLog = () => {
const getData = () => { const getData = () => {
post(`${PUBLISH_SERVICE}/LogCenter/GetLoginLog`, { post(`${PUBLISH_SERVICE}/LogCenter/GetLoginLog`, {
PageIndex: 1, PageIndex: 1,
PageSize: 200, PageSize: 1000,
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: '',
......
...@@ -71,9 +71,9 @@ const ServiceLog = () => { ...@@ -71,9 +71,9 @@ const ServiceLog = () => {
key: 'CallTime', key: 'CallTime',
}, },
{ {
title: '访问者IP', title: 'IP',
dataIndex: 'IP', dataIndex: 'DownstreamRequest',
key: 'IP', key: 'DownstreamRequest',
}, },
{ {
title: '返回状态', title: '返回状态',
...@@ -153,7 +153,8 @@ const ServiceLog = () => { ...@@ -153,7 +153,8 @@ const ServiceLog = () => {
const getData = (url, set) => { const getData = (url, set) => {
post(`${PUBLISH_SERVICE}/LogCenter${url}`, { post(`${PUBLISH_SERVICE}/LogCenter${url}`, {
// 获取日志表数据时PageSize设置为200,其他接口默认值20 // 获取日志表数据时PageSize设置为200,其他接口默认值20
PageSize: url === '/GetOMSLog' ? 200 : 20, PageIndex: 1,
PageSize: url === '/GetOMSLog' ? 1000 : 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: '',
......
...@@ -71,9 +71,9 @@ const ServiceLog = () => { ...@@ -71,9 +71,9 @@ const ServiceLog = () => {
key: 'CallTime', key: 'CallTime',
}, },
{ {
title: '访问者IP', title: 'IP',
dataIndex: 'IP', dataIndex: 'DownstreamRequest',
key: 'IP', key: 'DownstreamRequest',
}, },
{ {
title: '返回状态', title: '返回状态',
...@@ -153,7 +153,8 @@ const ServiceLog = () => { ...@@ -153,7 +153,8 @@ const ServiceLog = () => {
const getData = (url, set) => { const getData = (url, set) => {
post(`${PUBLISH_SERVICE}/LogCenter${url}`, { post(`${PUBLISH_SERVICE}/LogCenter${url}`, {
// 获取日志表数据时PageSize设置为200,其他接口默认值20 // 获取日志表数据时PageSize设置为200,其他接口默认值20
PageSize: url === '/GetOMSLog' ? 200 : 20, PageIndex: 1,
PageSize: url === '/GetOMSLog' ? 1000 : 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: '',
......
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