薪资档案列表列固定
This commit is contained in:
parent
35633d753e
commit
d05778f9f9
|
|
@ -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" }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue