feature/2.16.1.2410.01-薪酬统计报表薪资明细添加模板切换和模板创建功能
This commit is contained in:
parent
5abe35ca60
commit
3fbe08ab2e
|
|
@ -183,8 +183,7 @@ class SalaryDetails extends Component {
|
|||
const { transferDialog, tempDialog } = this.state, { type } = transferDialog;
|
||||
if (type === "temp") {
|
||||
this.setState({
|
||||
tempDialog: { ...tempDialog, visible: true, setting: _.map(values, o => o.id) },
|
||||
transferDialog: { ...this.state.transferDialog, visible: false, cancel: true, type: "default" }
|
||||
tempDialog: { ...tempDialog, visible: true, setting: _.map(values, o => o.id) }
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
@ -273,7 +272,11 @@ class SalaryDetails extends Component {
|
|||
{/*薪资明细模板设置*/}
|
||||
<SalaryDetailsTempDialog {...tempDialog} onSuccess={this.getPageListTemplatelist}
|
||||
onCancel={callback => this.setState({
|
||||
tempDialog: { ...tempDialog, visible: false, setting: [] }
|
||||
tempDialog: { ...tempDialog, visible: false, setting: [] },
|
||||
transferDialog: {
|
||||
...this.state.transferDialog,
|
||||
visible: false, cancel: true, type: "default"
|
||||
}
|
||||
}, () => callback && callback())}/>
|
||||
</div>
|
||||
</React.Fragment>
|
||||
|
|
|
|||
Loading…
Reference in New Issue