From b434640162f0f80656be4b9d57dd60fc1657bd81 Mon Sep 17 00:00:00 2001 From: xds Date: Tue, 11 Feb 2025 16:02:58 +0300 Subject: [PATCH] new version of budget view --- src/components/budgets/BudgetView2.vue | 161 +++++++++++++------------ 1 file changed, 83 insertions(+), 78 deletions(-) diff --git a/src/components/budgets/BudgetView2.vue b/src/components/budgets/BudgetView2.vue index 1a3fff7..dd3f8bd 100644 --- a/src/components/budgets/BudgetView2.vue +++ b/src/components/budgets/BudgetView2.vue @@ -25,6 +25,7 @@ import {Chart as ChartJS} from 'chart.js/auto'; import SelectButton from "primevue/selectbutton"; import Divider from "primevue/divider"; import TransactionForm from "@/components/transactions/TransactionForm.vue"; +import Checkbox from "primevue/checkbox"; // Зарегистрируем плагин ChartJS.register(ChartDataLabels); @@ -370,8 +371,8 @@ const saveLimit = async (category) => { const updateLimitOnBackend = async (categoryId, newLimit) => { await fetch(`/api/categories/${categoryId}/limit`, { method: "PUT", - headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ limit: newLimit }), + headers: {"Content-Type": "application/json"}, + body: JSON.stringify({limit: newLimit}), }); }; @@ -873,7 +874,9 @@ onMounted(async () => { + Добавить - +