| | |
| | | |
| | | type SearchValues = { |
| | | keyword?: string; |
| | | contentType?: number; |
| | | status?: number; |
| | | }; |
| | | |
| | |
| | | |
| | | const trimSearchValues = (values: SearchValues) => ({ |
| | | keyword: values.keyword?.trim() || undefined, |
| | | contentType: values.contentType, |
| | | contentType: 1, |
| | | status: values.status, |
| | | }); |
| | | |
| | |
| | | <Form form={searchForm} layout="horizontal" className="health-popularization-search-form"> |
| | | <Form.Item label="标题" name="keyword"> |
| | | <Input placeholder="请输入" allowClear /> |
| | | </Form.Item> |
| | | <Form.Item label="类型" name="contentType"> |
| | | <Select placeholder="全部" allowClear options={contentTypeOptions} /> |
| | | </Form.Item> |
| | | <Form.Item label="状态" name="status"> |
| | | <Select placeholder="全部" allowClear options={statusOptions} /> |