From 18cdfb1593b53d76d53517ba678cbb2abbfd2d50 Mon Sep 17 00:00:00 2001 From: tore Date: Mon, 14 Sep 2026 20:38:22 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5:=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BA=D0=B0=20=D0=BF=D0=BE=D0=BB=D0=B5=D0=B9=20=D0=BD?= =?UTF-8?q?=D0=B0=20undefined,=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=D0=B1=D1=80=D0=BE=D1=81=D0=B0=20localStorage,=20=D1=84?= =?UTF-8?q?=D0=B8=D0=BB=D1=8C=D1=82=D1=80=20q3/q4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 69a10da..6c89cf6 100644 --- a/index.html +++ b/index.html @@ -107,6 +107,7 @@ +
${CATEGORY_NAMES[item.category]}
@@ -335,6 +336,8 @@ function filterGroups() { if (period === '2025' && itemYear !== '2025') return false; if (period === 'q1' && itemPeriod !== 'q1') return false; if (period === 'q2' && itemPeriod !== 'q2') return false; + if (period === 'q3' && itemPeriod !== 'q3') return false; + if (period === 'q4' && itemPeriod !== 'q4') return false; } return true; @@ -506,6 +509,19 @@ document.addEventListener('DOMContentLoaded', function() { document.getElementById('btn-reset').addEventListener('click', resetFilters); + document.getElementById('btn-clear-storage').addEventListener('click', function() { + if (confirm('Очистить все сохранённые данные и загрузить демо-данные заново?')) { + localStorage.removeItem('zakupki-review-state'); + appState.groups = JSON.parse(JSON.stringify(DEMO_DATA)); + appState.selectedItems.clear(); + appState.filters = { category: 'all', status: 'all', period: 'all' }; + document.getElementById('filter-category').value = 'all'; + document.getElementById('filter-status').value = 'all'; + document.getElementById('filter-period').value = 'all'; + renderGroups(); + } + }); + document.getElementById('btn-confirm').addEventListener('click', function() { if (appState.selectedItems.size === 0) return; const comment = document.getElementById('group-comment').value || 'Подтверждено пользователем';