From db844db9e655830a9d725b205984e7492ff5e474 Mon Sep 17 00:00:00 2001 From: quanyawei <401863037@qq.com> Date: Fri, 24 Nov 2023 10:47:48 +0800 Subject: [PATCH] fix:导出修改 --- src/views/toCarryOutLegislativeReforms/reform/index.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/toCarryOutLegislativeReforms/reform/index.vue b/src/views/toCarryOutLegislativeReforms/reform/index.vue index cdeb5b5..a0d5e7d 100644 --- a/src/views/toCarryOutLegislativeReforms/reform/index.vue +++ b/src/views/toCarryOutLegislativeReforms/reform/index.vue @@ -332,15 +332,20 @@ this.$confirm('������������������������������?', '������', { confirmButtonText: '������������', cancelButtonText: '������������', + distinguishCancelAndClose: true, type: 'warning' }) .then(() => { this.loading = true this.exportData() }) - .catch(() => { - this.loading = false - this.exportData() + .catch(action => { + if (action === 'cancel') { + this.loading = false + this.exportData() + } else { + this.loading = false + } }) }, exportData() { @@ -371,6 +376,7 @@ cancel = c }), onDownloadProgress(progress) { + console.log('onDownloadProgress', progress) const loaded = progress.loaded // progress������������loaded������������������������������total������������������������������������������ let downProgress = Math.round((loaded / totalSize) * 100) -- Gitblit v1.8.0