From 2dd387aa80ec90370ff48a1a7ea6c011407a1b40 Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Wed, 4 Dec 2024 11:20:44 +0800 Subject: [PATCH] =?UTF-8?q?custom/=E6=B1=87=E9=80=9A=E5=BB=BA=E8=AE=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/custom-pages/huitong/dataDetail/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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" })) + ] }); } });