diff --git a/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js b/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js index ac29a122..a842501e 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/huitong/dataDetail/index.js @@ -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" })) + ] }); } });