From a7d478b66729a24a692d2966357c28026a84cdb9 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Tue, 20 May 2025 14:38:26 +0800 Subject: [PATCH 001/143] =?UTF-8?q?perf(=E5=89=8D=E7=AB=AF):=20=E5=9C=A8?= =?UTF-8?q?=E7=BA=BF=E8=81=8A=E5=A4=A9:=20=E2=9B=94=E4=BC=9A=E8=AF=9D?= =?UTF-8?q?=E7=9A=84=E8=AE=A2=E5=8D=95=E7=AD=9B=E9=80=89;=20`=E5=B7=B2?= =?UTF-8?q?=E5=A4=84=E7=90=86`=E6=94=B9=E4=B8=BA`=E9=9A=90=E8=97=8F`;=20?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E5=88=97=E8=A1=A8=E6=AF=8F=E9=A1=B5100;=20?= =?UTF-8?q?=E4=B8=8D=E6=93=8D=E4=BD=9C`=E9=82=AE=E4=BB=B6`;=20=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=8A=98=E5=8F=A0`=E8=AE=A2=E5=8D=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF`;=20=E9=9A=90=E8=97=8F=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E9=82=AE=E4=BB=B6;=20=E9=9A=90=E8=97=8F=E6=8A=A5=E4=BB=B7?= =?UTF-8?q?=E5=8E=86=E5=8F=B2;=20=E5=9C=A8=E7=BA=BF=E8=81=8A=E5=A4=A9?= =?UTF-8?q?=E5=8F=AA=E8=83=BD=E7=9C=8B=E8=AE=A2=E5=8D=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions/ConversationActions.js | 2 +- src/stores/OrderStore.js | 4 +++- src/views/ChatWindow.jsx | 10 +++++----- .../Online/Components/ChatListFilter.jsx | 8 ++++---- .../Online/Components/ChatListItem.jsx | 2 +- .../Online/Components/MessageListFilter.jsx | 2 +- .../Online/ConversationsList.jsx | 20 ++++++++++--------- .../Conversations/Online/ReplyWrapper.jsx | 2 +- .../Online/order/CustomerProfile.jsx | 16 ++++++++------- 9 files changed, 36 insertions(+), 30 deletions(-) diff --git a/src/actions/ConversationActions.js b/src/actions/ConversationActions.js index b457df3..1dae387 100644 --- a/src/actions/ConversationActions.js +++ b/src/actions/ConversationActions.js @@ -90,7 +90,7 @@ const templatesDisplayNameMap = { 'agent_intro_with_update_v1': 'quick_update_v1', }; -export const CONVERSATION_PAGE_SIZE = 50; +export const CONVERSATION_PAGE_SIZE = 100; /** * * @param {object} params { opisn } diff --git a/src/stores/OrderStore.js b/src/stores/OrderStore.js index 7d8f682..524e79b 100644 --- a/src/stores/OrderStore.js +++ b/src/stores/OrderStore.js @@ -251,7 +251,9 @@ export const remindStatusOptions = [ { value: 'important', label: '重点团' }, { value: 'sendsurvey', label: '已发 travel advisor survey' }, ]; - +export const remindStatusOptionsMapped = remindStatusOptions.reduce((acc, cur) => { + return { ...acc, [String(cur.value)]: cur } +}, {}); /** * @param {Object} params { coli_sn, remindstate } diff --git a/src/views/ChatWindow.jsx b/src/views/ChatWindow.jsx index 5df73ad..1e71720 100644 --- a/src/views/ChatWindow.jsx +++ b/src/views/ChatWindow.jsx @@ -1,6 +1,6 @@ import { useEffect, useState } from 'react'; import { Layout, Spin, Button } from 'antd'; -import { RightCircleOutlined, RightOutlined, ReloadOutlined, MenuFoldOutlined, MenuUnfoldOutlined } from '@ant-design/icons'; +import { RightCircleOutlined, RightOutlined, ReloadOutlined, MenuFoldOutlined, MenuUnfoldOutlined, VerticalRightOutlined, VerticalLeftOutlined } from '@ant-design/icons'; // import { useParams, useNavigate } from 'react-router-dom'; import MessagesHeader from './Conversations/Online/MessagesHeader'; import MessagesWrapper from './Conversations/Online/MessagesWrapper'; @@ -21,7 +21,7 @@ const { Sider, Content, Header, Footer } = Layout; const ChatWindow = () => { const [collapsedLeft, setCollapsedLeft] = useState(false); - const [collapsedRight, setCollapsedRight] = useState(false); + const [collapsedRight, setCollapsedRight] = useState(true); return ( <> @@ -37,7 +37,7 @@ const ChatWindow = () => { collapsed={false} onBreakpoint={(broken) => { // setCollapsedLeft(broken) - setCollapsedRight(broken) + // setCollapsedRight(broken) }} trigger={null}> @@ -49,7 +49,7 @@ const ChatWindow = () => { {/*