Compare commits
48 Commits
Author | SHA1 | Date |
---|---|---|
|
6d5e037f3f | 3 months ago |
|
e5281be550 | 3 months ago |
|
a7f2e1d5dc | 3 months ago |
|
17577d6fb6 | 3 months ago |
|
0ec8566344 | 3 months ago |
|
7e20ca48cf | 3 months ago |
|
b35b5db436 | 3 months ago |
|
bc5d86d568 | 3 months ago |
|
f3b2093d8b | 3 months ago |
|
13a8bca806 | 3 months ago |
|
f718049de4 | 3 months ago |
|
79b9e21c73 | 3 months ago |
|
d6724fa0a6 | 3 months ago |
|
22f07f9100 | 3 months ago |
|
0ca4a7a15a | 3 months ago |
|
bfdeba11ee | 3 months ago |
|
504366b529 | 3 months ago |
|
c69acb791d | 3 months ago |
|
f24a40fe6b | 3 months ago |
|
84e9ada0e7 | 3 months ago |
|
6a3da2a537 | 3 months ago |
|
535aa38775 | 3 months ago |
|
22674fe498 | 3 months ago |
|
eabb53e0a9 | 3 months ago |
|
9ed85c81b2 | 3 months ago |
|
6baff26720 | 3 months ago |
|
0a06f6c16a | 3 months ago |
|
038db199e9 | 3 months ago |
|
210d3e7263 | 3 months ago |
|
945f1b3651 | 3 months ago |
|
378c864277 | 3 months ago |
|
cbf63c5e86 | 3 months ago |
|
01997b7d23 | 3 months ago |
|
d5a522e88f | 3 months ago |
|
e0950bb773 | 3 months ago |
|
74a0e0c14e | 3 months ago |
|
068a02ff64 | 3 months ago |
|
2abd149655 | 3 months ago |
|
2b344eec43 | 3 months ago |
|
7365ae08ee | 3 months ago |
|
5b5ebe896c | 3 months ago |
|
cd5dbb3be5 | 3 months ago |
|
d0fbf179fd | 3 months ago |
|
6b32601fc7 | 3 months ago |
|
403cb4f7c7 | 3 months ago |
|
c51df7fa03 | 3 months ago |
|
26b709a7dc | 3 months ago |
|
f3ead963cc | 4 months ago |
Binary file not shown.
Before Width: | Height: | Size: 7.8 KiB After Width: | Height: | Size: 8.5 KiB |
@ -1,6 +1,6 @@
|
||||
.logo {
|
||||
float: left;
|
||||
height: 68px;
|
||||
height: 60px;
|
||||
margin: 0 6px 0 0;
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
@ -0,0 +1,75 @@
|
||||
import { useState } from 'react'
|
||||
import { SearchOutlined } from '@ant-design/icons'
|
||||
import { Button, Modal, Form, Input, Radio } from 'antd'
|
||||
import { searchEmailListAction } from '@/actions/EmailActions'
|
||||
import useConversationStore from '@/stores/ConversationStore'
|
||||
|
||||
const MailListSearchModal = ({ ...props }) => {
|
||||
const [currentMailboxOPI] = useConversationStore((state) => [state.currentMailboxOPI])
|
||||
|
||||
const [openForm, setOpenForm] = useState(false)
|
||||
const [formSearch] = Form.useForm()
|
||||
const [loading, setLoading] = useState(false)
|
||||
|
||||
const onSubmitSearchMailList = async (values) => {
|
||||
setLoading(true)
|
||||
await searchEmailListAction({...values, opi_sn: currentMailboxOPI});
|
||||
setLoading(false)
|
||||
setOpenForm(false)
|
||||
}
|
||||
return (
|
||||
<>
|
||||
<Button key={'bound'} onClick={() => setOpenForm(true)} size='small' icon={<SearchOutlined className='' />}>
|
||||
查找邮件
|
||||
</Button>
|
||||
<Modal
|
||||
width={window.innerWidth < 700 ? '95%' : 960}
|
||||
open={openForm}
|
||||
cancelText='关闭'
|
||||
okText='查找'
|
||||
confirmLoading={loading}
|
||||
okButtonProps={{ autoFocus: true, htmlType: 'submit', type: 'default' }}
|
||||
onCancel={() => setOpenForm(false)}
|
||||
footer={null}
|
||||
destroyOnHidden
|
||||
modalRender={(dom) => (
|
||||
<Form
|
||||
layout='vertical'
|
||||
form={formSearch}
|
||||
name='searchmaillist_form_in_modal'
|
||||
initialValues={{ mailboxtype: '' }}
|
||||
clearOnDestroy
|
||||
onFinish={(values) => onSubmitSearchMailList(values)}
|
||||
className='[&_.ant-form-item]:m-2'>
|
||||
{dom}
|
||||
</Form>
|
||||
)}>
|
||||
<Form.Item name='mailboxtype' label='邮箱文件夹'>
|
||||
<Radio.Group
|
||||
options={[
|
||||
{ key: 'All', value: '', label: 'All' },
|
||||
{ key: '1', value: '1', label: '收件箱' },
|
||||
{ key: '2', value: '2', label: '未读邮件' },
|
||||
{ key: '3', value: '3', label: '已发邮件' },
|
||||
{ key: '7', value: '7', label: '已处理邮件' },
|
||||
]}
|
||||
optionType='button'
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item name='sender' label='发件人'>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
<Form.Item name='receiver' label='收件人'>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
<Form.Item name='subject' label='主题'>
|
||||
<Input />
|
||||
</Form.Item>
|
||||
<Button type='primary' htmlType='submit' loading={loading}>
|
||||
查找
|
||||
</Button>
|
||||
</Modal>
|
||||
</>
|
||||
)
|
||||
}
|
||||
export default MailListSearchModal
|
Loading…
Reference in New Issue