diff --git a/web_src/src/components/dialog/recordDownload.vue b/web_src/src/components/dialog/recordDownload.vue index ea44353a..7a945400 100644 --- a/web_src/src/components/dialog/recordDownload.vue +++ b/web_src/src/components/dialog/recordDownload.vue @@ -7,6 +7,7 @@ 停止缓存并下载 + 点击下载 @@ -39,7 +40,8 @@ export default { taskId: null, getProgressRun: false, getProgressForFileRun: false, - timer: null + timer: null, + downloadFile: null, }; }, @@ -187,8 +189,9 @@ export default { this.percentage = parseFloat(res.data.data[0].percentage)*100 if (res.data.data[0].percentage === '1') { this.getProgressForFileRun = false; - window.open(res.data.data[0].downloadFile) - this.close(); + this.downloadFile = res.data.data[0].downloadFile + this.title = "文件处理完成,点击按扭下载" + // window.open(res.data.data[0].downloadFile) }else { if (callback)callback() } @@ -196,7 +199,10 @@ export default { }).catch(function (error) { console.log(error); }); - } + }, + downloadFileClientEvent: function (){ + window.open(this.downloadFile ) + } }, destroyed() { window.removeEventListener('beforeunload', this.stopDownloadRecord)