release/2.19.1.2501.01
This commit is contained in:
parent
6b8b604f55
commit
eecb7f34f2
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue