feature/2.9.42310.02-社保福利档案页面重构

This commit is contained in:
黎永顺 2023-10-31 16:59:50 +08:00
parent b14fce7949
commit c068959e73
1 changed files with 10 additions and 8 deletions

View File

@ -56,12 +56,11 @@ class Index extends Component {
dataIndex, title, width, fixed: "left",
render: (txt) => (<span title={txt}>{txt}</span>)
};
} else {
return {
dataIndex, title, width,
render: (txt) => (<span title={txt}>{txt}</span>)
};
}
return {
dataIndex, title, width,
render: (txt) => (<span title={txt}>{txt}</span>)
};
})
}, () => onChangeTopTabCount(runStatuses, total));
}
@ -70,7 +69,6 @@ class Index extends Component {
render() {
const { dataSource, columns, loading, pageInfo, selectedRowKeys } = this.state;
console.log(columns);
const pagination = {
...pageInfo,
showTotal: total => `${getLabel(18609, "共")} ${total} ${getLabel(18256, "条")}`,
@ -94,8 +92,12 @@ class Index extends Component {
};
return (
<WeaTable
rowKey="employeeId" dataSource={dataSource} pagination={pagination} loading={loading}
columns={columns} rowSelection={rowSelection} scroll={{ x: 1200, y: `calc(100vh - 220px)` }}
dataSource={dataSource} pagination={pagination} loading={loading}
scroll={{ x: 1200, y: `calc(100vh - 220px)` }}
columns={[...columns, {
dataIndex: "operate", title: "操作", fixed: "right", width: 175,
render: () => (<span>123</span>)
}]}
/>
);
}