|
@@ -114,6 +114,10 @@ function header(props) {
|
114
|
114
|
),
|
115
|
115
|
},
|
116
|
116
|
];
|
|
117
|
+ function handleReset() {
|
|
118
|
+ props.form.resetFields();
|
|
119
|
+ getList({ pageNum: 1, pageSize: 10 })
|
|
120
|
+ }
|
117
|
121
|
|
118
|
122
|
const { getFieldDecorator } = props.form
|
119
|
123
|
return (
|
|
@@ -121,13 +125,18 @@ function header(props) {
|
121
|
125
|
<>
|
122
|
126
|
<Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
|
123
|
127
|
<Form.Item>
|
124
|
|
- {getFieldDecorator('status')(
|
125
|
|
- <Select style={{ width: '180px' }} placeholder="请选择">
|
126
|
|
- <Option value="1">已上架</Option>
|
127
|
|
- <Option value="0">已下架</Option>
|
128
|
|
- </Select>,
|
|
128
|
+ {getFieldDecorator('buildingId')(
|
|
129
|
+ <BuildSelect />,
|
129
|
130
|
)}
|
130
|
131
|
</Form.Item>
|
|
132
|
+ <Form.Item>
|
|
133
|
+ <Button type="primary" htmlType="submit" >
|
|
134
|
+ 查询
|
|
135
|
+ </Button>
|
|
136
|
+ <Button style={{ marginLeft: 8 }} onClick={handleReset}>
|
|
137
|
+ 重置
|
|
138
|
+ </Button>
|
|
139
|
+ </Form.Item>
|
131
|
140
|
</Form>
|
132
|
141
|
<AuthButton name="admin.taNewsType.post" noRight={null}>
|
133
|
142
|
<Button type="danger" className={styles.addBtn} onClick={toEditNews()}>新增</Button>
|