From 90b0d121ee28f68284d3785b408549c434e7ac7f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=99=BD=E5=B0=81=E7=BE=BD?= <2360164671@qq.com>
Date: Tue, 3 Jan 2023 21:34:05 +0800
Subject: [PATCH] =?UTF-8?q?=E9=B2=B8=E9=B1=BC=E6=9D=A5=E5=92=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mine/component/ReimbursementDetailFiles.tsx | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
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 (<>