From 60fb0e0d8fdac8b3a0de1d02d57ab00c7570f5d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Wed, 7 Jan 2026 16:23:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E9=A2=84=E7=AE=97?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E7=AE=80=E5=8C=96=E9=A2=84=E7=AE=97=E7=AE=A1=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Entity/BudgetRecord.cs | 5 ----- Web/src/api/budget.js | 12 ----------- Web/src/views/BudgetView.vue | 25 +--------------------- WebApi/Controllers/BudgetController.cs | 29 +------------------------- WebApi/Controllers/Dto/BudgetDto.cs | 4 +--- 5 files changed, 3 insertions(+), 72 deletions(-) diff --git a/Entity/BudgetRecord.cs b/Entity/BudgetRecord.cs index b71fea5..d7289e0 100644 --- a/Entity/BudgetRecord.cs +++ b/Entity/BudgetRecord.cs @@ -39,11 +39,6 @@ public class BudgetRecord : BaseEntity /// 开始日期 /// public DateTime StartDate { get; set; } = DateTime.Now; - - /// - /// 上次同步时间 - /// - public DateTime? LastSync { get; set; } } public enum BudgetPeriodType diff --git a/Web/src/api/budget.js b/Web/src/api/budget.js index 21920ab..b9ccf5a 100644 --- a/Web/src/api/budget.js +++ b/Web/src/api/budget.js @@ -60,15 +60,3 @@ export function toggleStopBudget(id) { }) } -/** - * 同步预算进度 - * @param {number} id 预算ID - * @param {string} referenceDate 参考日期 (可选) - */ -export function syncBudget(id, referenceDate) { - return request({ - url: '/Budget/Sync', - method: 'post', - params: { id, referenceDate } - }) -} diff --git a/Web/src/views/BudgetView.vue b/Web/src/views/BudgetView.vue index f697d75..822901c 100644 --- a/Web/src/views/BudgetView.vue +++ b/Web/src/views/BudgetView.vue @@ -46,7 +46,6 @@ 进行中
-
@@ -91,7 +90,6 @@ {{ budget.period }} - 上次同步: {{ budget.lastSync }}