From 5f4fc5d2e8a02bbd60df1b9581165c1a1e75162b Mon Sep 17 00:00:00 2001 From: nisen Date: Tue, 5 Sep 2023 14:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E5=85=B7=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/grateful/GratefulHomePage.vue | 29 +++++++++++++------------ src/views/grateful/GratefulNotice.vue | 2 +- src/views/grateful/NoticeDetail.vue | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/src/views/grateful/GratefulHomePage.vue b/src/views/grateful/GratefulHomePage.vue index ec751374..80fd0418 100644 --- a/src/views/grateful/GratefulHomePage.vue +++ b/src/views/grateful/GratefulHomePage.vue @@ -258,20 +258,21 @@ export default { methods: { downTool(toolInfo) { console.log(toolInfo); - toolDown({ - urlStr: `${process.env.VUE_APP_BOE_WEB_URL}/upload${toolInfo.filePath}`, - fileName: toolInfo.name - }).then((result) => { - const link = document.createElement('a');// 创建a标签 - let blob = new Blob([result.data], { type: '' }); // 设置文件类型 - link.style.display = "none"; - link.href = URL.createObjectURL(blob); // 创建URL - link.setAttribute("download", `${toolInfo.name}`); - document.body.appendChild(link); - link.click(); - URL.revokeObjectURL(link.href); - document.body.removeChild(link); - }) + window.open(`/activityApi/xboe/m/boe/tools/url/download?urlStr=${process.env.VUE_APP_BOE_WEB_URL}/upload${toolInfo.filePath}&fileName=${toolInfo.name}`) + // toolDown({ + // urlStr: `${process.env.VUE_APP_BOE_WEB_URL}/upload${toolInfo.filePath}`, + // fileName: toolInfo.name + // }).then((result) => { + // const link = document.createElement('a');// 创建a标签 + // let blob = new Blob([result.data], { type: '' }); // 设置文件类型 + // link.style.display = "none"; + // link.href = URL.createObjectURL(blob); // 创建URL + // link.setAttribute("download", `${toolInfo.name}`); + // document.body.appendChild(link); + // link.click(); + // URL.revokeObjectURL(link.href); + // document.body.removeChild(link); + // }) }, couresreso() { carouselList().then((res) => { diff --git a/src/views/grateful/GratefulNotice.vue b/src/views/grateful/GratefulNotice.vue index 4e3e3465..00c9fa7d 100644 --- a/src/views/grateful/GratefulNotice.vue +++ b/src/views/grateful/GratefulNotice.vue @@ -23,7 +23,7 @@
{{ item.name }}
- +
diff --git a/src/views/grateful/NoticeDetail.vue b/src/views/grateful/NoticeDetail.vue index 4759c120..20087860 100644 --- a/src/views/grateful/NoticeDetail.vue +++ b/src/views/grateful/NoticeDetail.vue @@ -26,7 +26,7 @@
发布人:{{ createName }}
- +
通知内容