From 81e91ee808856ed3e59ab23c7c4e8932d63b7a49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=BA=86=E6=B3=B0?= <12369755+htcloud1@user.noreply.gitee.com> Date: Tue, 18 Aug 2026 01:13:35 +0800 Subject: [PATCH] =?UTF-8?q?refactor(manager/plans):=20=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=9F=A5=E7=9C=8B=E6=94=B9=20OSS=20=E4=BB=A3?= =?UTF-8?q?=E7=90=86=20+=20=E6=96=B0=E7=AA=97=E5=8F=A3=E6=89=93=E5=BC=80?= =?UTF-8?q?=20(=E4=B8=8E=20PublicityDetail=20=E4=B8=80=E8=87=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PDF 体验问题: - 旧: Preview dialog iframe 内嵌 PDF (70vh 矮, OSS attachment 头让 iframe 强制下载) - 新: window.open 浏览器原生 PDF viewer (Chrome 工具栏/缩放/分页/搜索全有) 实现: - 加 proxyUrl() 函数: OSS URL 走 /common/oss/proxy 后端代理重写 inline + #toolbar=0&zoom=page-width - 加 openDesign(): window.open(proxyUrl(row.designFileUrl), '_blank') - 删 Preview 组件 import + onFile + previewOpen/Url/Title refs + 标签 - 表格"查看"按钮 @click 改 openDesign(row) - '下载'按钮保留 (downloadFile() 仍用 OSS 原始 URL) --- ry-vue3/src/views/manager/Plans.vue | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/ry-vue3/src/views/manager/Plans.vue b/ry-vue3/src/views/manager/Plans.vue index 778eeef..fe48651 100644 --- a/ry-vue3/src/views/manager/Plans.vue +++ b/ry-vue3/src/views/manager/Plans.vue @@ -47,7 +47,7 @@ - - +