diff --git a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/components/generateDataDialog.js b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/components/generateDataDialog.js index 84b2eb2f..1007c1ce 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/components/generateDataDialog.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/components/generateDataDialog.js @@ -37,8 +37,8 @@ class GenerateDataDialog extends Component { if (nextProps.visible !== this.props.visible && !nextProps.visible) nextProps.LYStore.initDataForm(); } - initLYForm = () => { - const { type } = props; + initLYForm = (props) => { + const { type } = props || this.props; this.setState({ conditions: _.map(dataConditions, item => ({ ...item,