From 5cac4d6dde76a70dfe0a15b3771787eb92f3450d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Mon, 12 Jan 2026 16:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/BudgetService.cs | 31 ++++++++++++++++++++++++++++--- Web/src/styles/rich-content.css | 11 ----------- WebApi/Program.cs | 2 +- 3 files changed, 29 insertions(+), 15 deletions(-) diff --git a/Service/BudgetService.cs b/Service/BudgetService.cs index f3caf24..5b43ef9 100644 --- a/Service/BudgetService.cs +++ b/Service/BudgetService.cs @@ -563,10 +563,28 @@ public class BudgetService( if (incomeItems.Count == 0) description.Append("

无收入预算

"); else { - description.Append(""); + description.Append(""" +
名称金额折算合计
+ + + + + + + + + + """); foreach (var item in incomeItems) { - description.Append($""); + description.Append($""" + + + + + + + """); } description.Append("
名称金额折算合计
{item.Name}{item.Limit:N0}x{item.Factor:0.##}{item.Total:N0}
{item.Name}{item.Limit:N0}{item.Factor:0.##}{item.Total:N0}
"); } @@ -590,7 +608,14 @@ public class BudgetService( """); foreach (var item in expenseItems) { - description.Append($"{item.Name}{item.Limit:N0}x{item.Factor:0.##}{item.Total:N0}"); + description.Append($""" + + {item.Name} + {item.Limit:N0} + {item.Factor:0.##} + {item.Total:N0} + + """); } description.Append(""); } diff --git a/Web/src/styles/rich-content.css b/Web/src/styles/rich-content.css index d605dad..8150a50 100644 --- a/Web/src/styles/rich-content.css +++ b/Web/src/styles/rich-content.css @@ -93,17 +93,6 @@ text-overflow: ellipsis; } -/* 针对第一列“名称”分配更多空间,其余平分 */ -.rich-html-content th:first-child, -.rich-html-content td:first-child { - width: 30%; -} - -.rich-html-content th:not(:first-child), -.rich-html-content td:not(:first-child) { - width: 20%; -} - .rich-html-content th { background: var(--van-gray-1); color: var(--van-text-color); diff --git a/WebApi/Program.cs b/WebApi/Program.cs index e3a874f..576a499 100644 --- a/WebApi/Program.cs +++ b/WebApi/Program.cs @@ -111,7 +111,7 @@ var fsql = new FreeSqlBuilder() .UseMonitorCommand( cmd => { - Log.Debug("执行SQL: {Sql}", cmd.CommandText); + Log.Verbose("执行SQL: {Sql}", cmd.CommandText); } ) .Build();