custom/汇通建设

This commit is contained in:
lys 2024-12-04 11:20:44 +08:00
parent 5c8fa0cf73
commit 2dd387aa80
1 changed files with 7 additions and 1 deletions

View File

@ -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" }))
]
});
}
});