鲸鱼来咯
parent
fcba9e958b
commit
90b0d121ee
|
@ -57,7 +57,8 @@ function DisplayInvoicesList(props:{departureInvoice: Invoice, destinationInvoic
|
|||
title: '出发票据',
|
||||
key: departureInvoice.invoiceId.toString(),
|
||||
isLeaf: true,
|
||||
icon: <SwapRightOutlined/>
|
||||
icon: <SwapRightOutlined/>,
|
||||
style: {color: '\t#6495ED'},
|
||||
},
|
||||
]
|
||||
};
|
||||
|
@ -66,9 +67,11 @@ function DisplayInvoicesList(props:{departureInvoice: Invoice, destinationInvoic
|
|||
title: '返程票据',
|
||||
key: destinationInvoice.invoiceId.toString(),
|
||||
isLeaf: true,
|
||||
icon: <SwapLeftOutlined/>
|
||||
icon: <SwapLeftOutlined/>,
|
||||
style: {color: '\t#6495ED'},
|
||||
});
|
||||
}
|
||||
mainData.title+=`(${mainData.children.length})`;
|
||||
let othersData: DataNode = {
|
||||
title: '其他票据',
|
||||
key: '0-1',
|
||||
|
@ -80,11 +83,13 @@ function DisplayInvoicesList(props:{departureInvoice: Invoice, destinationInvoic
|
|||
othersData.children?.push({
|
||||
title: `附加票据-${cnt + 1}`,
|
||||
key: otherInvoices[i].invoiceId.toString(),
|
||||
isLeaf: true
|
||||
isLeaf: true,
|
||||
style: {color: '\t#6495ED'},
|
||||
});
|
||||
cnt++;
|
||||
}
|
||||
}
|
||||
othersData.title+=`(${cnt})`;
|
||||
treeData.push(mainData)
|
||||
treeData.push(othersData)
|
||||
return treeData;
|
||||
|
@ -103,7 +108,6 @@ function DisplayInvoicesList(props:{departureInvoice: Invoice, destinationInvoic
|
|||
|
||||
return (<>
|
||||
<DirectoryTree
|
||||
defaultExpandAll
|
||||
selectedKeys={[]}
|
||||
onSelect={onSelect}
|
||||
treeData={getTreeData()}
|
||||
|
|
Loading…
Reference in New Issue