From e4fc6f79c05f6bf384b5633b9a3d225b0dc01dc8 Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Tue, 3 Jun 2025 09:59:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=8B=AC=E7=AB=8B=E9=82=AE=E4=BB=B6?= =?UTF-8?q?=E7=AE=B1=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/orders/Follow.jsx | 212 +---------------------- src/views/orders/components/MailBox.jsx | 221 ++++++++++++++++++++++++ 2 files changed, 224 insertions(+), 209 deletions(-) create mode 100644 src/views/orders/components/MailBox.jsx diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index c149711..65eed8d 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,215 +220,8 @@ function Follow() { -
- { - 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={ setSubject(item.title)}>{item.title}} - description={item.description + ' ' + item.mailDate} - /> - {item.content}LSS250501006, Thailand - - )} - /> - - + + 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