|
|
|
@ -58,6 +58,7 @@ function Follow() {
|
|
|
|
|
const [currentMailboxOPI, setCurrentMailboxOPI] = useConversationStore(state => [state.currentMailboxOPI, state.setCurrentMailboxOPI]);
|
|
|
|
|
const [mailboxActiveNode, setMailboxActiveNode] = useConversationStore(state => [state.mailboxActiveNode, state.setMailboxActiveNode]);
|
|
|
|
|
const [activeEmailId, setActiveEmailId] = useConversationStore(state => [state.mailboxActiveMAI, state.setMailboxActiveMAI]);
|
|
|
|
|
const [mailboxActiveCOLI, setMailboxActiveCOLI] = useConversationStore(state => [state.mailboxActiveCOLI, state.setMailboxActiveCOLI]);
|
|
|
|
|
|
|
|
|
|
const computedBreadcrumb = useMemo(() => {
|
|
|
|
|
const { title, iconIndex, parentTitle, parentIconIndex } = mailboxActiveNode
|
|
|
|
@ -86,6 +87,7 @@ function Follow() {
|
|
|
|
|
if (VKey && !(!IsTrue && !COLI_SN)) {
|
|
|
|
|
setMailboxActiveNode({...treeNode, ...node._raw, key: treeNode.key, OPI_SN: currentMailboxOPI});
|
|
|
|
|
setActiveEmailId(0);
|
|
|
|
|
setMailboxActiveCOLI(COLI_SN);
|
|
|
|
|
} else {
|
|
|
|
|
const _expandTree = expandTree.includes(node.key) ? expandTree.filter(ele => ele !== node.key) : [...expandTree, ...selectedKeys]
|
|
|
|
|
setExpandTree(_expandTree)
|
|
|
|
@ -96,6 +98,7 @@ function Follow() {
|
|
|
|
|
const onClickEmailItem = (emailItem) => {
|
|
|
|
|
const mai_sn = emailItem.MAI_SN;
|
|
|
|
|
setActiveEmailId(mai_sn);
|
|
|
|
|
setMailboxActiveCOLI(emailItem.MAI_COLI_SN || 0)
|
|
|
|
|
const emailMsg = {
|
|
|
|
|
conversationid: '',
|
|
|
|
|
order_opi: currentMailboxOPI,
|
|
|
|
@ -174,7 +177,7 @@ function Follow() {
|
|
|
|
|
collapsedWidth={0}
|
|
|
|
|
trigger={null}
|
|
|
|
|
reverseArrow={true}>
|
|
|
|
|
<OrderProfile coliSN={mailboxActiveNode.COLI_SN} />
|
|
|
|
|
<OrderProfile coliSN={mailboxActiveCOLI} />
|
|
|
|
|
</Layout.Sider>
|
|
|
|
|
</Layout>
|
|
|
|
|
</>
|
|
|
|
|