feat: 添加深度复制功能,优化自动分类逻辑;更新周期账单视图以显示下次执行时间
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 43s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s

This commit is contained in:
2026-01-10 18:04:27 +08:00
parent 6a9c879dee
commit f34457a706
4 changed files with 30 additions and 2 deletions

View File

@@ -36,6 +36,7 @@
</template>
</van-cell>
<van-cell title="分类" :value="item.classify || '未分类'" />
<van-cell title="下次执行时间" :value="formatDateTime(item.nextExecuteTime) || '未设置'" />
<van-cell title="状态">
<template #value>
<van-switch
@@ -246,6 +247,7 @@ import {
} from '@/api/transactionPeriodic'
import PopupContainer from '@/components/PopupContainer.vue'
import ClassifySelector from '@/components/ClassifySelector.vue'
import dayjs from 'dayjs'
const router = useRouter()
const navTitle = ref('周期账单')
@@ -507,6 +509,12 @@ const toggleEnabled = async (id, enabled) => {
}
}
const formatDateTime = (date) => {
if (!date) return ''
return dayjs(date).format('YYYY-MM-DD HH:mm:ss')
}
// 重置表单
const resetForm = () => {
form.id = null