From 6eeb82e56306d645a290a0f5ba202efe3ef2385d Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 27 十月 2026 17:49:09 +0800
Subject: [PATCH] feat(report): 新增PDF报告预览功能并重构报告下载流程
---
tests/attachment-download.test.mjs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tests/attachment-download.test.mjs b/tests/attachment-download.test.mjs
index 48928e2..3e856a8 100644
--- a/tests/attachment-download.test.mjs
+++ b/tests/attachment-download.test.mjs
@@ -149,7 +149,7 @@
.map(n => n.type === 'ImportDeclaration' ? { start: n.start, end: n.end, text: '' }
: { start: n.start, end: n.declaration.start, text: 'globalThis.component = ' })
for (const edit of edits.sort((a, b) => b.start - a.start)) source = source.slice(0, edit.start) + edit.text + source.slice(edit.end)
- const context = vm.createContext({ vueQr: {}, PrintDialog: {}, limsTable: {}, mapGetters: () => ({}), getFileList })
+ const context = vm.createContext({ vueQr: {}, PrintDialog: {}, ReportPreview: {}, limsTable: {}, mapGetters: () => ({}), getFileList })
vm.runInContext(source, context)
return { ...context.component.data(), ...context.component.methods }
}
--
Gitblit v1.9.3