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() { render() {
const { dataSource, selectedKeys } = this.state, { dataParams } = this.props; const { dataSource, selectedKeys } = this.state, { dataParams } = this.props;
const heads = _.reduce(dataSource, (pre, cur) => { const heads = _.reduce(selectedKeys, (pre, cur) => {
if (selectedKeys.includes(cur.id)) { const item = dataSource.find(data => data.id === cur);
return [...pre, cur.name]; if (item) pre.push(item.name);
}
return pre; return pre;
}, []); }, []);
return (<WeaDialog return (<WeaDialog