From f8418b95ced4d04a951739136dff520a4efaca1c Mon Sep 17 00:00:00 2001 From: MO <448233645@qq.com> Date: Thu, 19 Oct 2023 13:19:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=B0=E8=B4=A6=E8=AF=A6=E6=83=85=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E9=A2=84=E8=A7=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/archives/record/index.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/archives/record/index.vue b/src/views/archives/record/index.vue index f23a6ee5..395fc1c3 100644 --- a/src/views/archives/record/index.vue +++ b/src/views/archives/record/index.vue @@ -1199,6 +1199,16 @@ export default { this.loading = false; }); }, + /** + * 文件预览 + * @param fileUrl + */ + openLink(fileUrl) { + const url = + process.env.VUE_APP_ONLINE_API + + `/onlinePreview?url=${encodeURIComponent(this.base64Encode(fileUrl))}`; + window.open(url); + }, // 获取立档单位 getOrganizationList() { getOrganizationPage().then((response) => {