|
|
|
@ -133,9 +133,11 @@ function Follow() {
|
|
|
|
|
const handleTreeSelectGetMails = (selectedKeys, { node }) => {
|
|
|
|
|
// console.info('selectedTreeKeys: ', node)
|
|
|
|
|
const treeNode = pick(node, ['key', 'parent', 'iconIndex', 'getMails', 'title', 'parentTitle', 'parentIconIndex' ]);
|
|
|
|
|
setMailboxActiveNode({...treeNode, ...node._raw, OPI_SN: currentMailboxOPI});
|
|
|
|
|
// const { COLI_SN, VKey, VParent, ApplyDate, OrderSourceType, IsTrue } = node?._raw || {}
|
|
|
|
|
setActiveEmailId(0);
|
|
|
|
|
const { COLI_SN, VKey, VParent, ApplyDate, OrderSourceType, IsTrue } = node?._raw || {}
|
|
|
|
|
if (VKey && !(!IsTrue && !COLI_SN)) {
|
|
|
|
|
setMailboxActiveNode({...treeNode, ...node._raw, OPI_SN: currentMailboxOPI});
|
|
|
|
|
setActiveEmailId(0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
@ -160,7 +162,7 @@ function Follow() {
|
|
|
|
|
title: '今日任务',
|
|
|
|
|
key: key + '-today',
|
|
|
|
|
getMails: false,iconIndex: 'star',
|
|
|
|
|
icon: <StarTwoTone />, _raw: {COLI_SN: 0},
|
|
|
|
|
icon: <StarTwoTone />, _raw: {COLI_SN: 0, IsTrue: 0,},
|
|
|
|
|
children: (sticky[0] || []).map((o) => ({
|
|
|
|
|
key: `today-${o.COLI_SN}`,
|
|
|
|
|
title: `(${todoTypes[o.coli_ordertype] || o.COLI_State}) ${o.COLI_ID}`,
|
|
|
|
@ -175,7 +177,7 @@ function Follow() {
|
|
|
|
|
title: '待办任务',
|
|
|
|
|
key: key + '-todo',
|
|
|
|
|
getMails: false,iconIndex: 'calendar',
|
|
|
|
|
icon: <CalendarTwoTone />,_raw: {COLI_SN: 0},
|
|
|
|
|
icon: <CalendarTwoTone />,_raw: {COLI_SN: 0, IsTrue: 0,},
|
|
|
|
|
children: (sticky[1] || []).map((o) => ({
|
|
|
|
|
key: `todo-${o.COLI_SN}`,
|
|
|
|
|
title: `(${todoTypes[o.coli_ordertype] || o.COLI_State}) ${o.COLI_ID}`,
|
|
|
|
|