feat: 增加可以自定义默认值功能
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
</wd-card>
|
||||
|
||||
<wd-cell-group>
|
||||
<wd-cell size="large" title="记录默认值" is-link @click="openDefaultPopup"/>
|
||||
<wd-cell size="large" title="今日概览" is-link @click="openOverviewPopup"/>
|
||||
<wd-cell size="large" title="今日计划" is-link @click="openPlanPopup"/>
|
||||
<wd-cell size="large" title="存储详情" is-link @click="openStoragePopup"/>
|
||||
@@ -35,6 +36,8 @@
|
||||
<overview-popup />
|
||||
|
||||
<plan-popup />
|
||||
|
||||
<default-popup />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -44,11 +47,12 @@ import StoragePopup from "@/components/Profile/StoragePopup.vue";
|
||||
import OverviewPopup from "@/components/Profile/OverviewPopup.vue";
|
||||
import PlanPopup from "@/components/Profile/PlanPopup.vue";
|
||||
import { computed, ref, watch } from 'vue'
|
||||
import { getOverview, getPlan, getProfile } from '@/utils/profile'
|
||||
import {getDefaultRecordValue, getOverview, getPlan, getProfile} from '@/utils/profile'
|
||||
import { useProfileStore } from '@/store/profile'
|
||||
import { useAppStore } from "@/store/app";
|
||||
import type { IProfile } from "@/type/profile";
|
||||
import { countRecordsByMonth, getMaxRecord, getTotalCount } from "@/utils/record";
|
||||
import DefaultPopup from "@/components/Profile/DefaultPopup.vue";
|
||||
|
||||
const profileStore = useProfileStore()
|
||||
const appStore = useAppStore()
|
||||
@@ -74,6 +78,11 @@ function openProfile() {
|
||||
profileStore.showProfilePopup = true
|
||||
}
|
||||
|
||||
function openDefaultPopup() {
|
||||
profileStore.defaultRecordValueForm = getDefaultRecordValue()
|
||||
profileStore.showDefaultRecordValuePopup = true
|
||||
}
|
||||
|
||||
function openOverviewPopup() {
|
||||
profileStore.overviewList = getOverview()
|
||||
profileStore.showOverviewPopup = true
|
||||
|
||||
Reference in New Issue
Block a user