diff --git a/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx b/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx index ee08c99..c6638df 100644 --- a/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx +++ b/src/pages/reimbursement/mine/component/ReimbursementDetailFiles.tsx @@ -57,7 +57,8 @@ function DisplayInvoicesList(props:{departureInvoice: Invoice, destinationInvoic title: '出发票据', key: departureInvoice.invoiceId.toString(), isLeaf: true, - icon: + icon: , + style: {color: '\t#6495ED'}, }, ] }; @@ -66,9 +67,11 @@ function DisplayInvoicesList(props:{departureInvoice: Invoice, destinationInvoic title: '返程票据', key: destinationInvoice.invoiceId.toString(), isLeaf: true, - icon: + icon: , + 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 (<>