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