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

perf: 去除IP字段

parent 6afbc591
...@@ -29,12 +29,12 @@ const LoginLog = () => { ...@@ -29,12 +29,12 @@ const LoginLog = () => {
); );
const columns = [ const columns = [
{ // {
title: 'IP', // title: 'IP',
dataIndex: 'IP', // dataIndex: 'IP',
key: 'IP', // key: 'IP',
fixed: 'left', // fixed: 'left',
}, // },
{ {
title: '登录时间', title: '登录时间',
dataIndex: 'LoginTime', dataIndex: 'LoginTime',
......
...@@ -31,7 +31,7 @@ const ServiceLog = () => { ...@@ -31,7 +31,7 @@ const ServiceLog = () => {
const [endTime, setEndTime] = useState( const [endTime, setEndTime] = useState(
moment(new Date(), 'YYYY-MM-DD HH:mm:ss'), // 默认值,当前时间 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(''); // 关键字 const [searchWord, setSearchWord] = useState(''); // 关键字
// 计算时间间隔(分钟) // 计算时间间隔(分钟)
...@@ -62,7 +62,7 @@ const ServiceLog = () => { ...@@ -62,7 +62,7 @@ const ServiceLog = () => {
dataIndex: 'Path', dataIndex: 'Path',
key: 'Path', key: 'Path',
fixed: 'left', fixed: 'left',
width: 340, width: 400,
}, },
{ {
title: '调用时间', title: '调用时间',
...@@ -70,12 +70,12 @@ const ServiceLog = () => { ...@@ -70,12 +70,12 @@ const ServiceLog = () => {
key: 'CallTime', key: 'CallTime',
width: 160, width: 160,
}, },
{ // {
title: 'IP', // title: 'IP',
dataIndex: 'DownstreamRequest', // dataIndex: 'DownstreamRequest',
key: 'DownstreamRequest', // key: 'DownstreamRequest',
width: 120, // width: 120,
}, // },
{ {
title: '返回状态', title: '返回状态',
dataIndex: 'Result', dataIndex: 'Result',
...@@ -83,7 +83,7 @@ const ServiceLog = () => { ...@@ -83,7 +83,7 @@ const ServiceLog = () => {
width: 80, width: 80,
}, },
{ {
title: '错误信息', title: '异常信息',
dataIndex: 'ErrorMsg', dataIndex: 'ErrorMsg',
key: 'ErrorMsg', key: 'ErrorMsg',
render: record => { render: record => {
...@@ -248,7 +248,7 @@ const ServiceLog = () => { ...@@ -248,7 +248,7 @@ const ServiceLog = () => {
<Button onClick={() => setTime(24 * 60, '3')}>1</Button> <Button onClick={() => setTime(24 * 60, '3')}>1</Button>
<Button onClick={() => setTime(24 * 7 * 60, '4')}>1</Button> <Button onClick={() => setTime(24 * 7 * 60, '4')}>1</Button>
<span style={{ marginLeft: '20px' }}>返回状态:</span> <span style={{ marginLeft: '20px' }}>返回状态:</span>
<Select defaultValue="常" onChange={changeStatus}> <Select defaultValue="常" onChange={changeStatus}>
<Option value="9999">全部</Option> <Option value="9999">全部</Option>
<Option value="0">正常</Option> <Option value="0">正常</Option>
<Option value="-1">异常</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