|
@@ -30,15 +30,13 @@ class GroupList extends React.PureComponent {
|
|
|
|
|
|
// filtertable的列表配置
|
|
|
tableSetting = {
|
|
|
- // rowKey: 'alias',
|
|
|
- // isFrontPagination: true,
|
|
|
pagination: {
|
|
|
pageSize: 10
|
|
|
},
|
|
|
columnConfig: [
|
|
|
{
|
|
|
- title: 'ID',
|
|
|
- dataIndex: 'id'
|
|
|
+ title: 'ID',
|
|
|
+ dataIndex: 'id'
|
|
|
},
|
|
|
{
|
|
|
title: '分组名称',
|
|
@@ -64,28 +62,17 @@ class GroupList extends React.PureComponent {
|
|
|
title: '修改人',
|
|
|
dataIndex: 'updateUser'
|
|
|
}
|
|
|
- // {
|
|
|
- // title: '操作',
|
|
|
- // dataIndex: 'actions',
|
|
|
- // // 所有需要弹窗操作的都可以用编辑的逻辑;所有不需要弹窗的操作,比如上架、发布等,都可以用”删除“的逻辑
|
|
|
- // render: (text, record) => <span><a onClick={() => this.editItem(record)}>编辑</a><Divider
|
|
|
- // type="vertical"/><Popconfirm
|
|
|
- // title="确定删除"
|
|
|
- // onConfirm={() => this.delItem(record)}>
|
|
|
- // <a>删除</a>
|
|
|
- // </Popconfirm><Divider type="vertical"/></span>
|
|
|
- // }
|
|
|
],
|
|
|
getRefresh: refresh => {
|
|
|
this.refresh = refresh
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
render () {
|
|
|
return (
|
|
|
<div>
|
|
|
<FilterTable filterSetting={this.filterSetting} tableSetting={this.tableSetting} apiUrl={apiUrl}
|
|
|
- />
|
|
|
+ />
|
|
|
</div>
|
|
|
)
|
|
|
}
|