feat: 增加删除记录功能

This commit is contained in:
2026-08-25 15:15:40 +08:00
parent e42d0854ec
commit 98d74918a0
11 changed files with 260 additions and 112 deletions

View File

@@ -21,23 +21,28 @@
</wd-card>
<wd-cell-group>
<wd-cell title="今日概览" is-link @click="openOverviewPopup"/>
<wd-cell title="今日计划" is-link @click="openStoragePopup"/>
<wd-cell title="存储详情" is-link @click="openStoragePopup"/>
</wd-cell-group>
<profile-popup />
<storage-popup />
<overview-popup />
</view>
</template>
<script lang="ts" setup>
import ProfilePopup from "@/components/Profile/ProfilePopup.vue";
import StoragePopup from "@/components/Profile/StoragePopup.vue";
import OverviewPopup from "@/components/Profile/OverviewPopup.vue";
import { computed, ref, watch } from 'vue'
import { getProfile } from '@/utils/profile'
import { getOverview, getProfile } from '@/utils/profile'
import { useProfileStore } from '@/store/profile'
import type { IProfile } from "@/type/profile";
import {countRecordsByMonth, getTotalCount} from "@/utils/record";
import { countRecordsByMonth, getTotalCount } from "@/utils/record";
const profileStore = useProfileStore()
@@ -62,6 +67,11 @@ function openProfile() {
profileStore.showProfilePopup = true
}
function openOverviewPopup() {
profileStore.overviewList = getOverview()
profileStore.showOverviewPopup = true
}
function openStoragePopup() {
profileStore.storageStats = countRecordsByMonth()
profileStore.storageTotal = getTotalCount()