薪资档案列表列固定

This commit is contained in:
黎永顺 2022-11-10 11:40:26 +08:00
parent 35633d753e
commit d05778f9f9
1 changed files with 4 additions and 10 deletions

View File

@ -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 <div className="optWrapper">
@ -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 }}
/>
<WeaTableComx
style={{ display: "none" }}