feat: 更新用户设置模块
This commit is contained in:
@@ -21,9 +21,9 @@
|
||||
</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 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"/>
|
||||
</wd-cell-group>
|
||||
|
||||
<profile-popup />
|
||||
@@ -31,6 +31,8 @@
|
||||
<storage-popup />
|
||||
|
||||
<overview-popup />
|
||||
|
||||
<plan-popup />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -38,8 +40,9 @@
|
||||
import ProfilePopup from "@/components/Profile/ProfilePopup.vue";
|
||||
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, getProfile } from '@/utils/profile'
|
||||
import { getOverview, getPlan, getProfile } from '@/utils/profile'
|
||||
import { useProfileStore } from '@/store/profile'
|
||||
import type { IProfile } from "@/type/profile";
|
||||
import { countRecordsByMonth, getTotalCount } from "@/utils/record";
|
||||
@@ -72,6 +75,11 @@ function openOverviewPopup() {
|
||||
profileStore.showOverviewPopup = true
|
||||
}
|
||||
|
||||
function openPlanPopup() {
|
||||
profileStore.planList = getPlan()
|
||||
profileStore.showPlanPopup = true
|
||||
}
|
||||
|
||||
function openStoragePopup() {
|
||||
profileStore.storageStats = countRecordsByMonth()
|
||||
profileStore.storageTotal = getTotalCount()
|
||||
|
||||
Reference in New Issue
Block a user