1
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 13s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 26s
Docker Build & Deploy / Deploy to Production (push) Successful in 13s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
<!-- eslint-disable vue/no-v-html -->
|
||||
<template>
|
||||
<div class="page-container-flex">
|
||||
<van-nav-bar title="预算管理" placeholder>
|
||||
<template #right>
|
||||
@@ -15,7 +16,7 @@
|
||||
/>
|
||||
<van-icon
|
||||
v-if="isArchive"
|
||||
name="records-o"
|
||||
name="comment-o"
|
||||
size="20"
|
||||
title="已归档月份总结"
|
||||
style="margin-right: 12px"
|
||||
@@ -245,31 +246,14 @@
|
||||
v-model="showSummaryPopup"
|
||||
title="月份归档总结"
|
||||
:subtitle="`${selectedDate.getFullYear()}年${selectedDate.getMonth() + 1}月`"
|
||||
height="50%"
|
||||
height="70%"
|
||||
>
|
||||
<div style="padding: 16px;">
|
||||
<van-field
|
||||
v-model="archiveSummary"
|
||||
rows="6"
|
||||
autosize
|
||||
label="总结语"
|
||||
type="textarea"
|
||||
:placeholder="`请输入${selectedDate.getFullYear()}年${selectedDate.getMonth() + 1}月预算执行的总结或感悟...`"
|
||||
show-word-limit
|
||||
maxlength="500"
|
||||
<div
|
||||
class="rich-html-content"
|
||||
v-html="archiveSummary || '<p style=\'text-align:center;color:var(--van-text-color-3)\'>暂无总结</p>'"
|
||||
/>
|
||||
</div>
|
||||
<template #footer>
|
||||
<van-button
|
||||
block
|
||||
round
|
||||
type="primary"
|
||||
:loading="isSavingSummary"
|
||||
@click="handleSaveSummary"
|
||||
>
|
||||
保存总结
|
||||
</van-button>
|
||||
</template>
|
||||
</PopupContainer>
|
||||
</div>
|
||||
</template>
|
||||
@@ -524,26 +508,6 @@ const showArchiveSummary = async () => {
|
||||
}
|
||||
}
|
||||
|
||||
const handleSaveSummary = async () => {
|
||||
if (isSavingSummary.value) return
|
||||
isSavingSummary.value = true
|
||||
try {
|
||||
const res = await updateArchiveSummary({
|
||||
referenceDate: selectedDate.value.toISOString(),
|
||||
summary: archiveSummary.value
|
||||
})
|
||||
if (res.success) {
|
||||
showToast('已保存')
|
||||
showSummaryPopup.value = false
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('保存总结失败', err)
|
||||
showToast('保存总结失败')
|
||||
} finally {
|
||||
isSavingSummary.value = false
|
||||
}
|
||||
}
|
||||
|
||||
const handleDelete = async (budget) => {
|
||||
try {
|
||||
await showConfirmDialog({
|
||||
|
||||
Reference in New Issue
Block a user