From b1efa2f4f37c84e606b1dc8793706c72e8d45cea Mon Sep 17 00:00:00 2001 From: LiaoYijun Date: Thu, 29 May 2025 13:55:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E9=82=AE=E4=BB=B6?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E6=93=8D=E4=BD=9C=E5=B7=A5=E5=85=B7=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/orders/Follow.jsx | 327 +++++++++--------------------------- 1 file changed, 76 insertions(+), 251 deletions(-) diff --git a/src/views/orders/Follow.jsx b/src/views/orders/Follow.jsx index 2525def..9dd8dcb 100644 --- a/src/views/orders/Follow.jsx +++ b/src/views/orders/Follow.jsx @@ -8,19 +8,23 @@ import { WhatsAppOutlined, ImportOutlined, FileAddOutlined, - BarsOutlined, - DownOutlined, + StarTwoTone, + StarOutlined, MailOutlined, PhoneOutlined, UserOutlined, FieldNumberOutlined, SaveOutlined, PlusOutlined, - MehOutlined, + SearchOutlined, + ReloadOutlined,ReadOutlined, CompassOutlined, CheckSquareTwoTone, CarryOutTwoTone, + CheckSquareOutlined, MailTwoTone, + BookTwoTone, + RightSquareTwoTone, SwitcherTwoTone, FolderTwoTone, CalendarTwoTone, @@ -367,13 +371,16 @@ const [collapsed, setCollapsed] = useState(false) { + console.info('selectedKeys: ', selectedKeys) + }} + defaultExpandedKeys={['0-0-today-task', '0-1-todo-task']} defaultSelectedKeys={['0-0-0']} treeData={[ { title: '今日任务', - key: '0-0', - icon: , + key: '0-0-today-task', + icon: , children: [ { title: '(新订单)HXZ240913082', @@ -387,8 +394,8 @@ const [collapsed, setCollapsed] = useState(false) }, { title: '待办任务', - key: '0-1', - icon: , + key: '0-1-todo-task', + icon: , children: [ { title: '(一催)HXZ250213117', @@ -414,13 +421,13 @@ const [collapsed, setCollapsed] = useState(false) }, { title: '草稿', - key: '0-2', - icon: , + key: '0-2-draft', + icon: , }, { title: '收件箱', - key: '0-3', - icon: , + key: '0-3-inbox', + icon: , children: [ { title: '1月', @@ -473,12 +480,12 @@ const [collapsed, setCollapsed] = useState(false) }, { title: '已发送', - key: '0-4', - icon: , + key: '0-4-sent', + icon: , }, { title: '已处理', - key: '0-5', + key: '0-5-completed', icon: , }, ]} @@ -486,34 +493,42 @@ const [collapsed, setCollapsed] = useState(false) - - - + + + +
- - - - - + { + key: '4', + label: '二催模板二,表达服务的意识', + },{ + type: 'divider', + }, + { + key: '5', + label: '三催模板三,强调价格有效期', + }], + onClick: (item)=> {console.info('menu', item)}, +}} onClick={() => {console.info('新邮件')}}> + 新邮件 + { return false }} - placeholder={`名称/号码/订单号`} + placeholder={`邮件主题`} /> - - - - - - +
+
+ + + + +
+
@@ -706,217 +741,7 @@ const [collapsed, setCollapsed] = useState(false)

Some contents...{Math.random().toString(36).substring(2, 9)}

- {/* { - return { - onClick: (event) => {console.info(event)}, // 点击行 - onDoubleClick: (event) => {}, - onContextMenu: (event) => {}, - onMouseEnter: (event) => {}, // 鼠标移入行 - onMouseLeave: (event) => {}, - }; - }} - pagination={false} - sticky={{ offsetHeader: 64 }} - columns={[ - { - title: '主题', - dataIndex: 'subject', - key: 'subject', - width: 500, - render: (text) => { - setSubject(text) - setOpenMail(true) - }}>{text}, - }, - { - title: '收/发件人', - dataIndex: 'name', - key: 'name', - width: 380, - minWidth: 180, - render: (text) => {text}, - }, - { - title: '收/发日期', - dataIndex: 'mailDate', - key: '收/发日期', - width: 180, - }, - { - title: '订单号', - key: 'orderNo', - dataIndex: 'orderNo', - width: 140, - }, - { - title: '国籍', - key: 'country', - dataIndex: 'country', - width: 120, - }, - { - title: '操作', - key: 'action', - width: 120, - render: (_, record) => ( - - 回复 - 转发 - - ), - }, - ]} - dataSource={[ - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by Asia Highlights 超长主题怎么办????????????到框框到得奖看到' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - { - key: Math.random().toString(36).substring(2, 9), - name: 'Fran Grundman ', - subject: 'Your Thailand Private tour by "Asia Highlights" ' + Math.random().toString(36).substring(2, 9), - mailDate: '2025-05-01 19:21:00', - orderNo: 'LSS250501006', - country: 'Thailand', - }, - ]} - /> */} - - - {/* - ', - }, - { - key: '2', - label: '收件人', - children: '', - }, - { - key: '3', - label: '发送日期', - children: '2025-05-16 14:11', - }, -]} /> - - - - - - - - - -
换行了。。。看看 ' }}>
-
*/} -