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 }} />