From d05778f9f99f0f4be627ef48400bf58bdade6e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Thu, 10 Nov 2022 11:40:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=96=AA=E8=B5=84=E6=A1=A3=E6=A1=88=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=88=97=E5=9B=BA=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc4mobx/hrmSalary/pages/payrollFiles/index.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/pc4mobx/hrmSalary/pages/payrollFiles/index.js b/pc4mobx/hrmSalary/pages/payrollFiles/index.js index bee13a3e..4f7219a5 100644 --- a/pc4mobx/hrmSalary/pages/payrollFiles/index.js +++ b/pc4mobx/hrmSalary/pages/payrollFiles/index.js @@ -412,16 +412,11 @@ class Index extends Component { // } // }, ...columns], (item, index) => { - if (index === 0) { - // , fixed: "left" - // , width: item.oldWidth - return { ...item }; - } if (item.dataIndex === "operate") { return { ...item, - // fixed: "right", - // width: 150, + fixed: "right", + width: 150, render: (text, record) => { if (!showOperateBtn) { return
@@ -473,8 +468,7 @@ class Index extends Component { } }; } - // , width: item.oldWidth - return { ...item }; + return { ...item, width: item.oldWidth }; }); }; handleEdit = (record) => { @@ -725,7 +719,7 @@ class Index extends Component { columns={this.getColumns()} dataSource={dataSource} pagination={pagination} // rowClassName={(record) => record.archiveStatus === "ARCHIVE" ? "archiveRow" : ""} rowSelection={rowSelection} - // scroll={{ x: 1200 }} + scroll={{ x: 1200 }} />