mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-06 12:45:22 +08:00
opti: col list
This commit is contained in:
parent
6867b53c21
commit
ab74250ed0
@ -4,6 +4,7 @@ import PropTypes from 'prop-types'
|
||||
import { withRouter } from 'react-router'
|
||||
import { Table } from 'antd'
|
||||
import { fetchInterfaceColList, fetchCaseList, setColData } from '../../../../reducer/modules/interfaceCol'
|
||||
import { formatTime } from '../../../../common.js'
|
||||
|
||||
@connect(
|
||||
state => {
|
||||
@ -75,13 +76,20 @@ export default class InterfaceColContent extends Component {
|
||||
dataIndex: 'casename',
|
||||
key: 'casename'
|
||||
}, {
|
||||
title: '用例路径',
|
||||
title: '接口路径',
|
||||
dataIndex: 'path',
|
||||
key: 'path'
|
||||
}, {
|
||||
title: '请求方式',
|
||||
dataIndex: 'method',
|
||||
key: 'method'
|
||||
}, {
|
||||
title: '更新时间',
|
||||
dataIndex: 'up_time',
|
||||
key: 'up_time',
|
||||
render: (item) => {
|
||||
return <span>{formatTime(item)}</span>
|
||||
}
|
||||
}];
|
||||
|
||||
return (
|
||||
|
@ -108,7 +108,7 @@ class InterfaceList extends Component {
|
||||
}],
|
||||
onFilter: (value, record) => record.status.indexOf(value) === 0
|
||||
}, {
|
||||
title: '更新日期',
|
||||
title: '更新时间',
|
||||
dataIndex: 'up_time',
|
||||
key: 'up_time',
|
||||
render: (item) => {
|
||||
|
Loading…
Reference in New Issue
Block a user