样式调整
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 23s
Docker Build & Deploy / Deploy to Production (push) Successful in 9s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 23s
Docker Build & Deploy / Deploy to Production (push) Successful in 9s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
This commit is contained in:
@@ -563,10 +563,28 @@ public class BudgetService(
|
||||
if (incomeItems.Count == 0) description.Append("<p>无收入预算</p>");
|
||||
else
|
||||
{
|
||||
description.Append("<table><thead><tr><th>名称</th><th>金额</th><th>折算</th><th>合计</th></tr></thead><tbody>");
|
||||
description.Append("""
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 40%;">名称</th>
|
||||
<th style="width: 20%;">金额</th>
|
||||
<th style="width: 20%;">折算</th>
|
||||
<th style="width: 20%;">合计</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
""");
|
||||
foreach (var item in incomeItems)
|
||||
{
|
||||
description.Append($"<tr><td>{item.Name}</td><td>{item.Limit:N0}</td><td>x{item.Factor:0.##}</td><td><span class='income-value'>{item.Total:N0}</span></td></tr>");
|
||||
description.Append($"""
|
||||
<tr>
|
||||
<td style="width: 40%;">{item.Name}</td>
|
||||
<td style="width: 20%;">{item.Limit:N0}</td>
|
||||
<td style="width: 20%;">{item.Factor:0.##}</td>
|
||||
<td style="width: 20%;"><span class='income-value'>{item.Total:N0}</span></td>
|
||||
</tr>
|
||||
""");
|
||||
}
|
||||
description.Append("</tbody></table>");
|
||||
}
|
||||
@@ -590,7 +608,14 @@ public class BudgetService(
|
||||
""");
|
||||
foreach (var item in expenseItems)
|
||||
{
|
||||
description.Append($"<tr><td>{item.Name}</td><td>{item.Limit:N0}</td><td>x{item.Factor:0.##}</td><td><span class='expense-value'>{item.Total:N0}</span></td></tr>");
|
||||
description.Append($"""
|
||||
<tr>
|
||||
<td style="width: 40%;">{item.Name}</td>
|
||||
<td style="width: 20%;">{item.Limit:N0}</td>
|
||||
<td style="width: 20%;">{item.Factor:0.##}</td>
|
||||
<td style="width: 20%;"><span class='expense-value'>{item.Total:N0}</span></td>
|
||||
</tr>
|
||||
""");
|
||||
}
|
||||
description.Append("</tbody></table>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user