style: 历史记录查询表单

dev/chat
Lei OT 1 year ago
parent b3347e6d6b
commit 426c586198

@ -35,14 +35,11 @@ const SearchForm = memo(function ({ initialValues, onSubmit }) {
}); });
} }
return ( return (
<Form <Form layout={'inline'} form={form} initialValues={initialValues} onFinish={handleSubmit} style={{}}>
layout={'inline'} <Flex className='w-full'>
form={form} <Flex flex={'auto'} wrap='wrap' gap={4}>
initialValues={initialValues} <Form.Item label='发送人' name='agent' style={{ width: '200px' }} rules={[{ required: false, message: '请选择发送人' }]}>
onFinish={handleSubmit} <SearchInput placeholder='搜索发送人' fetchOptions={fetchSalesAgent} mode={'tags'} maxTagCount={0} />
style={{}}>
<Form.Item label='顾问' name='agent' style={{ width: '200px' }} rules={[{required: false, message: '请选择顾问'}]}>
<SearchInput placeholder='搜索顾问' fetchOptions={fetchSalesAgent} mode={'tags'} maxTagCount={0} />
</Form.Item> </Form.Item>
<Form.Item label='客人' name='customer' style={{ width: '200px' }}> <Form.Item label='客人' name='customer' style={{ width: '200px' }}>
<SearchInput placeholder='搜索客人' fetchOptions={fetchCustomerList} mode={'tags'} maxTagCount={0} /> <SearchInput placeholder='搜索客人' fetchOptions={fetchCustomerList} mode={'tags'} maxTagCount={0} />
@ -56,11 +53,15 @@ const SearchForm = memo(function ({ initialValues, onSubmit }) {
<Form.Item label='日期' name='msgDateRange'> <Form.Item label='日期' name='msgDateRange'>
<RangePicker format={'YYYY-MM-DD'} /> <RangePicker format={'YYYY-MM-DD'} />
</Form.Item> </Form.Item>
</Flex>
<div style={{flex: '0 1 64px'}}>
<Form.Item> <Form.Item>
<Button type='primary' htmlType='submit'> <Button type='primary' htmlType='submit'>
搜索 搜索
</Button> </Button>
</Form.Item> </Form.Item>
</div>
</Flex>
</Form> </Form>
); );
}); });

Loading…
Cancel
Save