feature/2.15.2.2409.01-薪酬统计薪资明细默认显示列
This commit is contained in:
parent
90470c3a57
commit
0754316e77
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue