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;