This commit is contained in:
zlwu committed 2026-05-19 12:03:08 +08:00
1 parent f269a994f4
commit 93cd506a90
71 files changed
+8297 -2207

No files matched your search

@@ -87,6 +87,7 @@
VideoPlay
} from '@element-plus/icons-vue'
import { fetchUploadAttachment } from '@/api/business'
import { downloadAttachmentFile } from '@/utils/download-attachment'
import type { FinanceAttachmentItem } from './finance-attachments'
const props = withDefaults(
@@ -135,13 +136,7 @@
}
function downloadFile(file: FinanceAttachmentItem) {
if (!file.fileUrl) return
const a = document.createElement('a')
a.href = fullFileUrl(file.fileUrl)
a.download = file.fileName || 'download'
a.target = '_blank'
a.rel = 'noopener'
a.click()
downloadAttachmentFile(file, { fullFileUrl })
}
function removeAttachment(index: number) {
@@ -37,6 +37,7 @@
</div>
</dl>
</div>
<slot name="append" />
</div>
<template #footer>