Commit e783edb5 authored by 陈帅's avatar 陈帅 Committed by 偏右

Repair query form parameters not reset problem (#398)

* Repair parameters not reset problem

* fix #400 getFieldDecorator more than one
parent 5715817c
......@@ -156,6 +156,7 @@ export default class BasicForms extends PureComponent {
<Radio value="3">不公开</Radio>
</Radio.Group>
)}
<FormItem>
{getFieldDecorator('publicUsers', {
})(
<Select
......@@ -171,6 +172,7 @@ export default class BasicForms extends PureComponent {
<Option value="3">同事丙</Option>
</Select>
)}
</FormItem>
</div>
</FormItem>
<FormItem {...submitFormLayout} style={{ marginTop: 32 }}>
......
......@@ -59,6 +59,9 @@ export default class TableList extends PureComponent {
handleFormReset = () => {
const { form, dispatch } = this.props;
form.resetFields();
this.setState({
formValues: {},
});
dispatch({
type: 'rule/fetch',
payload: {},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment