feature/2.9.42310.02-社保福利档案页面重构
This commit is contained in:
parent
436db457db
commit
d46f40b086
|
|
@ -31,11 +31,10 @@ class Index extends Component {
|
|||
document.querySelector(".salary-welfare-archive").classList.add("zIndex0-welfare-archive");
|
||||
const promise = this.getBaseForm(nextProps);
|
||||
} else if (nextProps.visible !== this.props.visible && !nextProps.visible) {
|
||||
const { archivesStore: { initWelfareProfileForm, setHasBeenModify } } = nextProps;
|
||||
const { archivesStore: { initWelfareProfileForm } } = nextProps;
|
||||
document.querySelector(".salary-welfare-archive").classList.remove("zIndex0-welfare-archive");
|
||||
initWelfareProfileForm();
|
||||
}
|
||||
console.log(38, nextProps);
|
||||
}
|
||||
|
||||
getBaseForm = async (props) => {
|
||||
|
|
@ -125,6 +124,8 @@ class Index extends Component {
|
|||
}
|
||||
});
|
||||
};
|
||||
updateForm = () => {
|
||||
};
|
||||
handleFormChange = (val) => {
|
||||
const changeKey = _.keys(val)[0], changeVal = val[changeKey].value;
|
||||
const { archivesStore: { setHasBeenModify }, onChangeProgramme, employeeId, paymentOrganization } = this.props;
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ class Index extends Component {
|
|||
if (status) {
|
||||
this.setState({
|
||||
welfareEditSlide: { ...this.state.welfareEditSlide, [`${type}Base`]: data }
|
||||
});
|
||||
}, () => this.archiveSlideRef.updateForm());
|
||||
}
|
||||
});
|
||||
};
|
||||
|
|
@ -262,7 +262,7 @@ class Index extends Component {
|
|||
/>
|
||||
</Spin>
|
||||
{/* 编辑产看员工福利档案*/}
|
||||
<WelfareEditArchiveSlide {...welfareEditSlide}
|
||||
<WelfareEditArchiveSlide {...welfareEditSlide} ref={dom => this.archiveSlideRef = dom}
|
||||
onClose={(isFresh) => this.setState({
|
||||
welfareEditSlide: { ...welfareEditSlide, visible: false }
|
||||
})}
|
||||
|
|
|
|||
Loading…
Reference in New Issue