feature/2.15.2.2409.01-薪酬统计薪资明细默认显示列

This commit is contained in:
黎永顺 2024-10-11 17:13:19 +08:00
parent 90470c3a57
commit 0754316e77
1 changed files with 7 additions and 3 deletions

View File

@ -30,8 +30,7 @@ class SalaryDetails extends Component {
showTotalCell: false, updateSum: true,
transferDialog: {
visible: false, searchParamsKey: "name", dataParams: { page: "salary_details_report" },
completeURL: "/api/bs/hrmsalary/common/pageList/get/setting"
// convertDatasource: null
completeURL: "/api/bs/hrmsalary/common/pageList/get/setting", convertDatasource: null
}
};
}
@ -137,7 +136,12 @@ class SalaryDetails extends Component {
return [];
};
handleSetDefCols = () => {
this.setState({ transferDialog: { ...this.state.transferDialog, visible: true } });
this.setState({
transferDialog: {
...this.state.transferDialog, visible: true,
convertDatasource: datas => _.map(datas.setting, o => ({ id: o.id, name: o.name }))
}
});
};
render() {