diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index 14e7461..197b661 100644 --- a/src/views/orders/Follow.jsx +++ b/src/views/orders/Follow.jsx @@ -72,6 +72,7 @@ import AdvanceSearchForm from './AdvanceSearchForm' import EmailDetailInline from '../Conversations/Online/Components/EmailDetailInline' import { getEmailDirAction } from '@/actions/EmailActions' import OrderProfile from '@/components/OrderProfile' +import Mailbox from './components/Mailbox' const EmailDirTypeIcons = { '0': { component: FolderOutlined, color: '#ffe78f', className: 'text-blue-500' }, @@ -219,208 +220,11 @@ function Follow() { -
- { - console.info('menu', item) - }, - }} - onClick={() => { - console.info('新邮件') - }}> - 新邮件 - - {}} - onPressEnter={(e) => { - return false - }} - placeholder={`邮件主题`} - /> - - - - - - -
- - -
-今日任务
} - itemLayout="vertical" - size="large" - pagination={false} - dataSource={[ - { - key: 5291957, // Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: '250520-LSS250429038 团的 变更 �确认:Japan Fleet', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5277561, // Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Your Thailand Private tour by Asia Highlights 超长主题怎么办????????????到框框到得奖看到', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5119909, //Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: Personal information', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5115479, // Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: Your Future Trip with Asia Highlights', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5113514, // Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: '回复: 回复:中华游251110-LSS250413051(AH)团计划', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5113512, //Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: Greeting from Asia Highlights Alisa', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5113508, // Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: Have you made any decisions about your Japan trip', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5112214, //Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: Sri Lanka tour', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5095421, //Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: How do you like the itinerary 3', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5095097, //Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: Re: Re: Final cost', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5095083, //Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Reference Number: LSS240628079', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: 5093980, //Math.random().toString(36).substring(2, 9), - description: 'Fran Grundman ', - title: 'Re: Personal information and Hiroshima tour for 2 people', - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - ] - } - renderItem={item => ( - 回复, - // 转发, - // ]} - extra={ - - } - - > - {console.info('item: ', item); setActiveEmailId(item.key)}} - title={ {}}>{item.title}} - description={item.description + ' ' + item.mailDate} - /> - {item.content}LSS250501006, Thailand - - )} - /> - - + + {/* }, + onClick={() => console.info('item: ', item)} + title={ setSubject(item.title)}>{item.title}} */} + diff --git a/src/views/orders/components/MailBox.jsx b/src/views/orders/components/MailBox.jsx new file mode 100644 index 0000000..4421d30 --- /dev/null +++ b/src/views/orders/components/MailBox.jsx @@ -0,0 +1,221 @@ +import { + ReloadOutlined, + ReadOutlined, CheckSquareOutlined +} from '@ant-design/icons' +import { + Flex, + Button, Tooltip, + List, + Dropdown, Input, Checkbox +} from 'antd' + +const MailBox = (props) => { + return ( + <> +
+ { + console.info('menu', item) + }, + }} + onClick={() => { + console.info('新邮件') + }}> + 新邮件 + + {}} + onPressEnter={(e) => { + return false + }} + placeholder={`邮件主题`} + /> + + + + + + +
+ +
+ 今日任务
} + itemLayout='vertical' + size='large' + pagination={false} + dataSource={[ + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: '250520-LSS250429038 团的 变更 �确认:Japan Fleet', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Your Thailand Private tour by Asia Highlights 超长主题怎么办????????????到框框到得奖看到', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Personal information', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Your Future Trip with Asia Highlights', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: '回复: 回复:中华游251110-LSS250413051(AH)团计划', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Greeting from Asia Highlights Alisa', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Have you made any decisions about your Japan trip', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Sri Lanka tour', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: How do you like the itinerary 3', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Re: Re: Final cost', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Reference Number: LSS240628079', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Personal information and Hiroshima tour for 2 people', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + { + key: Math.random().toString(36).substring(2, 9), + description: 'Fran Grundman ', + title: 'Re: Asia Travel Tips /LSS250429038', + mailDate: '2025-05-01 19:21:00', + orderNo: 'LSS250501006', + country: 'Thailand', + }, + ]} + renderItem={(item) => ( + 回复, + // 转发, + // ]} + extra={}> + console.info('item: ', item)} + title={ console.info('')}>} + description={item.description + ' ' + item.mailDate} + /> + {item.content}LSS250501006, Thailand + + )} + /> + + + ) +} + +export default MailBox