From f5cdc6232e548052ff38118878781f1b65802778 Mon Sep 17 00:00:00 2001 From: zhaoyu Date: Wed, 13 Dec 2023 16:57:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8B=E8=BD=BD=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/map/dialog/outSourceInfo.vue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/views/map/dialog/outSourceInfo.vue b/src/views/map/dialog/outSourceInfo.vue index 2926d3e..9592ffd 100644 --- a/src/views/map/dialog/outSourceInfo.vue +++ b/src/views/map/dialog/outSourceInfo.vue @@ -153,6 +153,20 @@ export default { this.punishThePerson = data.punishThePerson this.file9 = data.file9 }) + }, + downloadFile(filePath) { + this.$confirm('确定要下载此文件吗?', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.listLoading = false + // window.location.href = config.httpurl + 'outsourced/download?OUTSOURCED_ID=' + OUTSOURCED_ID + window.open(config.fileUrl + filePath) + }).catch(() => { + this.listLoading = false + }) + this.listLoading = false } } }