release/2.19.1.2501.01

This commit is contained in:
lys 2025-02-08 15:40:19 +08:00
parent 6b8b604f55
commit eecb7f34f2
1 changed files with 3 additions and 4 deletions

View File

@ -40,10 +40,9 @@ class SalaryTempAdminDialog extends Component {
render() {
const { dataSource, selectedKeys } = this.state, { dataParams } = this.props;
const heads = _.reduce(dataSource, (pre, cur) => {
if (selectedKeys.includes(cur.id)) {
return [...pre, cur.name];
}
const heads = _.reduce(selectedKeys, (pre, cur) => {
const item = dataSource.find(data => data.id === cur);
if (item) pre.push(item.name);
return pre;
}, []);
return (<WeaDialog