|
|
|
@ -135,7 +135,7 @@ function Follow() {
|
|
|
|
|
const treeNode = pick(node, ['key', 'parent', 'iconIndex', 'getMails', 'title', 'parentTitle', 'parentIconIndex' ]);
|
|
|
|
|
const { COLI_SN, VKey, VParent, ApplyDate, OrderSourceType, IsTrue } = node?._raw || {}
|
|
|
|
|
if (VKey && !(!IsTrue && !COLI_SN)) {
|
|
|
|
|
setMailboxActiveNode({...treeNode, ...node._raw, OPI_SN: currentMailboxOPI});
|
|
|
|
|
setMailboxActiveNode({...treeNode, ...node._raw, key: treeNode.key, OPI_SN: currentMailboxOPI});
|
|
|
|
|
setActiveEmailId(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -195,7 +195,7 @@ function Follow() {
|
|
|
|
|
// console.log('tree 0', byState);
|
|
|
|
|
setDeiStickyTree(byState)
|
|
|
|
|
const first = currentMailboxDEI || accountDEI[0].value
|
|
|
|
|
setExpandTree([`${first}-today`, `${first}-todo`])
|
|
|
|
|
setExpandTree([`${first}-today`, `${first}-todo`, mailboxActiveNode.key])
|
|
|
|
|
setStickyTree(byState[first] || [])
|
|
|
|
|
|
|
|
|
|
return () => {}
|
|
|
|
@ -212,9 +212,10 @@ function Follow() {
|
|
|
|
|
key='sticky-today'
|
|
|
|
|
blockNode
|
|
|
|
|
showIcon
|
|
|
|
|
showLine
|
|
|
|
|
showLine autoExpandParent={true}
|
|
|
|
|
expandAction={'doubleClick'}
|
|
|
|
|
onSelect={handleTreeSelectGetMails}
|
|
|
|
|
selectedKeys={[mailboxActiveNode.key]}
|
|
|
|
|
onExpand={(expandedKeys) => setExpandTree(expandedKeys)}
|
|
|
|
|
expandedKeys={expandTree}
|
|
|
|
|
defaultExpandedKeys={expandTree}
|
|
|
|
|