feature/2.16.1.2410.01-薪酬统计报表薪资明细添加模板切换和模板创建功能
This commit is contained in:
parent
3fbe08ab2e
commit
7063732d6f
|
|
@ -74,7 +74,8 @@ class SalaryDetails extends Component {
|
|||
if (status) {
|
||||
this.setState({
|
||||
tempPageList: _.map(data, o => ({ key: String(o.id), showname: o.name })),
|
||||
templateId: !_.isEmpty(_.find(data, o => !!o.checked)) ? String(_.find(data, o => !!o.checked).id) : ""
|
||||
templateId: !_.isEmpty(_.find(data, o => !!o.checked)) ? String(_.find(data, o => !!o.checked).id) : "",
|
||||
transferDialog: { ...this.state.transferDialog, visible: false, cancel: true, type: "default" }
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
@ -271,13 +272,9 @@ class SalaryDetails extends Component {
|
|||
})}/>
|
||||
{/*薪资明细模板设置*/}
|
||||
<SalaryDetailsTempDialog {...tempDialog} onSuccess={this.getPageListTemplatelist}
|
||||
onCancel={callback => this.setState({
|
||||
tempDialog: { ...tempDialog, visible: false, setting: [] },
|
||||
transferDialog: {
|
||||
...this.state.transferDialog,
|
||||
visible: false, cancel: true, type: "default"
|
||||
}
|
||||
}, () => callback && callback())}/>
|
||||
onCancel={() => this.setState({
|
||||
tempDialog: { ...tempDialog, visible: false, setting: [] }
|
||||
})}/>
|
||||
</div>
|
||||
</React.Fragment>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue