表单是在弹窗里面:
{this.state.modalShow ? <SalaryModal
modalShow={this.state.modalShow}
ref={'salaryModal'}
PayGradeArea={this.state.PayGradeArea}
Profession={this.state.Profession}
PaymentLevel={this.state.PaymentLevel}
PaymentGrade={this.state.PaymentGrade}
closeModal={() => { this.closeModal() }}
submit={(data) => { this.submit(data) }}
/>:null}
modalShow :控制弹窗显示与隐藏
已经加了
const SalaryModal = Form.create()(SalaryModalForm);
export default SalaryModal;
表单的代码:
<Form>
<FormItem {...formItemLayout} blabel={'工资档级'}>
{getFieldDecorator('PayLevelCode')(
<Select >
{Array.isArray(PaymentLevel) && PaymentLevel.map((item,index,arr)=>{
return <Option value={item.code} key={index}>{translm(item.name)}</Option>
})}
</Select>
)}
</FormItem>
</Form>
你好,你这个问题解决了么?