From 43db5951093dd4e1336e27b55321357db8339d3c Mon Sep 17 00:00:00 2001 From: 13176889840 <13176889840@163.com> Date: Thu, 28 Jul 2022 16:39:00 +0800 Subject: [PATCH] dd --- src/views/modules/shequzhili/statics/cEvent.vue | 8 +++++++- src/views/modules/shequzhili/statics/gridEvent.vue | 7 ++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/views/modules/shequzhili/statics/cEvent.vue b/src/views/modules/shequzhili/statics/cEvent.vue index eef74a2e..03d2aad5 100644 --- a/src/views/modules/shequzhili/statics/cEvent.vue +++ b/src/views/modules/shequzhili/statics/cEvent.vue @@ -42,7 +42,7 @@ size="small">总计 导出 + size="small" :loading="exportLoading">导出 @@ -103,6 +103,7 @@ export default { deleteIsBatch: true, exportURL: '/data/stats/factAgencyUserHouseDaily/export' }, + exportLoading: false, dataListLoading: false, optionsA: [], totalVisible: false, @@ -179,6 +180,8 @@ export default { }, exportHandle () { const url = '/data/aggregator/org/orgProjectDetailList/export' + this.dataForm.type = 1 + this.exportLoading = true this.$http({ method: 'Post', url, @@ -199,9 +202,12 @@ export default { aLink.click() document.body.removeChild(aLink) //下载完成移除元素 window.URL.revokeObjectURL(url) //释放掉blob对象 + // this.exportLoading = false } else this.$message.error('下载失败') + this.exportLoading = false }).catch(err => { console.log('err', err) + this.exportLoading = false return this.$message.error('网络错误') }) }, diff --git a/src/views/modules/shequzhili/statics/gridEvent.vue b/src/views/modules/shequzhili/statics/gridEvent.vue index 99f55ecf..af24a50e 100644 --- a/src/views/modules/shequzhili/statics/gridEvent.vue +++ b/src/views/modules/shequzhili/statics/gridEvent.vue @@ -46,7 +46,7 @@ size="small">总计 --> 导出 + size="small" :loading="exportLoading">导出 @@ -103,6 +103,7 @@ export default { deleteIsBatch: true, exportURL: '/data/stats/factAgencyUserHouseDaily/export' }, + exportLoading: false, dataListLoading: false, dataList: [], optionsA: [], @@ -184,6 +185,7 @@ export default { this.getTableList(); }, exportHandle () { + this.exportLoading = true const url = '/data/aggregator/org/memberProjectInfoList/export' this.$http({ method: 'Post', @@ -205,9 +207,12 @@ export default { aLink.click() document.body.removeChild(aLink) //下载完成移除元素 window.URL.revokeObjectURL(url) //释放掉blob对象 + // this.exportLoading = false } else this.$message.error('下载失败') + this.exportLoading = false }).catch(err => { console.log('err', err) + this.exportLoading = false return this.$message.error('网络错误') }) },