Commit 4608a0e7 authored by 陈前坚's avatar 陈前坚

perf: 去除IP字段

parent 6afbc591
......@@ -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',
......
......@@ -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: 340,
width: 400,
},
{
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>
......
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