新增不记额收支
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 34s
Docker Build & Deploy / Deploy to Production (push) Successful in 8s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 0s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 34s
Docker Build & Deploy / Deploy to Production (push) Successful in 8s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 0s
Docker Build & Deploy / WeChat Notification (push) Successful in 3s
This commit is contained in:
@@ -465,6 +465,28 @@ const handleSaveSummary = async () => {
|
||||
isSavingSummary.value = false
|
||||
}
|
||||
}
|
||||
|
||||
const handleDelete = async (budget) => {
|
||||
try {
|
||||
await showConfirmDialog({
|
||||
title: '删除预算',
|
||||
message: `确定要删除预算 "${budget.name}" 吗?`
|
||||
})
|
||||
|
||||
const res = await deleteBudget(budget.id)
|
||||
if (res.success) {
|
||||
showToast('删除成功')
|
||||
await fetchBudgetList()
|
||||
} else {
|
||||
showToast(res.message || '删除失败')
|
||||
}
|
||||
} catch (err) {
|
||||
if (err.message !== 'cancel') {
|
||||
console.error('删除预算失败', err)
|
||||
showToast('删除预算失败')
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user