Commit 6c4cb12f authored by 陈前坚's avatar 陈前坚

perf: log

parent 44b24646
...@@ -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',
...@@ -158,7 +158,7 @@ const ServiceLog = () => { ...@@ -158,7 +158,7 @@ const ServiceLog = () => {
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: '',
......
import React, { useState, useEffect, useCallback } from 'react'; import React, { useState, useEffect, useCallback } from 'react';
import { import {
Tree,
Table, Table,
Space, Space,
message, message,
...@@ -15,14 +16,13 @@ import { ...@@ -15,14 +16,13 @@ import {
Dropdown, Dropdown,
Menu, Menu,
} from 'antd'; } from 'antd';
import Tree from '@/components/ExpendableTree'; // import Tree from '@/components/ExpendableTree';
import { import {
UserAddOutlined, UserAddOutlined,
UsergroupAddOutlined, UsergroupAddOutlined,
EditOutlined, EditOutlined,
EditTwoTone, EditTwoTone,
DeleteOutlined, DeleteOutlined,
DeleteTwoTone,
ShareAltOutlined, ShareAltOutlined,
UnlockOutlined, UnlockOutlined,
ApartmentOutlined, ApartmentOutlined,
......
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