鲸鱼来咯

main
白封羽 2023-01-03 21:34:05 +08:00
parent fcba9e958b
commit 90b0d121ee
1 changed files with 8 additions and 4 deletions

View File

@ -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()}