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) => {