<Form.Item label="作用对象">
{getFieldDecorator('targetId', { initialValue: this.state.targetId }, {
rules: [{
required: false,
message: '作用对象'
}]
})(
<Select placeholder="请选择作用对象">
{targetList.map(entity => <Option key={entity.id} value={entity.id}>{entity.name}</Option>)}
</Select>
)}
</Form.Item>
在
getFieldDecorator('targetId',时添加初始值而不是在select标签中添加初始值