custom/汇通建设
This commit is contained in:
parent
5c8fa0cf73
commit
2dd387aa80
|
|
@ -59,7 +59,13 @@ class Index extends Component {
|
|||
const { list: dataSource, pageNum: current, pageSize, total } = pageParams;
|
||||
this.setState({
|
||||
dataSource, pageInfo: { ...pageInfo, current, pageSize, total },
|
||||
columns: _.map(columns, o => ({ dataIndex: o.column, title: o.text, width: o.width + "px" }))
|
||||
columns: [
|
||||
{
|
||||
title: getLabel(111, "序号"), dataIndex: "index", width: 60, fixed: "left",
|
||||
render: (text, record, index) => (pageInfo.current - 1) * pageInfo.pageSize + index + 1
|
||||
},
|
||||
..._.map(columns, o => ({ dataIndex: o.column, title: o.text, width: o.width + "px" }))
|
||||
]
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue