import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Button, Col, Form, Input, Row } from 'antd'; import Panel from '../../../components/Panel'; import { LOG_ERROR_LIST } from '../../../actions/log'; import Grid from '../../../components/Sword/Grid'; const FormItem = Form.Item; @connect(({ log, loading }) => ({ log, loading: loading.models.log, })) @Form.create() class LogError extends PureComponent { // ============ 查询 =============== handleSearch = params => { const { dispatch } = this.props; dispatch(LOG_ERROR_LIST(params)); }; // ============ 查询表单 =============== renderSearchForm = onReset => { const { form } = this.props; const { getFieldDecorator } = form; return ( {getFieldDecorator('serviceId')()} {getFieldDecorator('requestUri')()}
); }; render() { const code = 'log_error'; const { form, loading, log: { errorData }, } = this.props; const columns = [ { title: '服务id', dataIndex: 'serviceId', }, { title: '服务host', dataIndex: 'serverHost', }, { title: '服务ip', dataIndex: 'serverIp', }, { title: '软件环境', dataIndex: 'env', }, { title: '请求方法', dataIndex: 'method', }, { title: '请求接口', dataIndex: 'requestUri', }, { title: '日志时间', dataIndex: 'createTime', }, ]; return ( ); } } export default LogError;