From 3ec0dbcd9ba3fc006cf3e13d6910ef1d6c0809c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E8=AF=9A?= Date: Sun, 4 Jan 2026 18:33:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=A4=E6=98=93=E5=88=86?= =?UTF-8?q?=E7=B1=BB=E9=80=89=E6=8B=A9=E9=80=BB=E8=BE=91=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=E5=B9=B6=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E9=AB=98=E4=BA=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Web/src/components/TransactionDetail.vue | 2 +- Web/src/views/StatisticsView.vue | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/Web/src/components/TransactionDetail.vue b/Web/src/components/TransactionDetail.vue index 19ad75a..e5c8609 100644 --- a/Web/src/components/TransactionDetail.vue +++ b/Web/src/components/TransactionDetail.vue @@ -256,7 +256,7 @@ const onSubmit = async () => { const selectClassify = (classify) => { editForm.classify = classify - if(editForm.id > 0 && editForm.type > 0) { + if(editForm.id > 0 && editForm.type >= 0) { // 直接保存 onSubmit() } diff --git a/Web/src/views/StatisticsView.vue b/Web/src/views/StatisticsView.vue index 4e8bae0..f742fe1 100644 --- a/Web/src/views/StatisticsView.vue +++ b/Web/src/views/StatisticsView.vue @@ -100,7 +100,6 @@ v-for="(category) in expenseCategoriesView" :key="category.classify" class="category-item clickable" - :class="{ 'highlighted': category._highlighted }" @click="goToCategoryBills(category.classify, 0)" >
@@ -137,7 +136,6 @@ v-for="category in incomeCategoriesView" :key="category.classify" class="category-item clickable" - :class="{ 'highlighted': category._highlighted }" @click="goToCategoryBills(category.classify, 1)" >
@@ -168,7 +166,6 @@ v-for="category in noneCategoriesView" :key="category.classify" class="category-item clickable" - :class="{ 'highlighted': category._highlighted }" @click="goToCategoryBills(category.classify, 2)" >
@@ -377,7 +374,6 @@ const expenseCategoriesView = computed(() => { const unclassifiedIndex = sorted.findIndex(c => !c.classify) if (unclassifiedIndex !== -1) { const [unclassified] = sorted.splice(unclassifiedIndex, 1) - unclassified._highlighted = true sorted.unshift(unclassified) } return sorted @@ -388,7 +384,6 @@ const incomeCategoriesView = computed(() => { const unclassifiedIndex = sorted.findIndex(c => !c.classify) if (unclassifiedIndex !== -1) { const [unclassified] = sorted.splice(unclassifiedIndex, 1) - unclassified._highlighted = true sorted.unshift(unclassified) } return sorted @@ -399,7 +394,6 @@ const noneCategoriesView = computed(() => { const unclassifiedIndex = sorted.findIndex(c => !c.classify) if (unclassifiedIndex !== -1) { const [unclassified] = sorted.splice(unclassifiedIndex, 1) - unclassified._highlighted = true sorted.unshift(unclassified) } return sorted @@ -1102,13 +1096,6 @@ onBeforeUnmount(() => { background-color: #ff6b6b; } -.category-item.highlighted { - background-color: var(--van-primary-color); - opacity: 0.1; - border-left: 3px solid var(--van-primary-color); - padding-left: 9px; -} - /* 趋势图 */ .trend-chart { padding: 20px 16px;