From 5628026ac6876a79a2d67424955416d6d0465a85 Mon Sep 17 00:00:00 2001 From: jiangyy Date: Wed, 11 May 2022 16:50:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E6=88=B7=E4=B8=80=E6=A1=A3=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E9=98=B2=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/base/community/buildTable.vue | 7 ++++++- src/views/modules/base/community/communityTable.vue | 7 ++++++- src/views/modules/base/community/roomTable.vue | 8 +++++++- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/src/views/modules/base/community/buildTable.vue b/src/views/modules/base/community/buildTable.vue index 125a8feb..3fe03ac3 100644 --- a/src/views/modules/base/community/buildTable.vue +++ b/src/views/modules/base/community/buildTable.vue @@ -55,6 +55,7 @@ 导出一户一档 @@ -227,6 +228,8 @@ export default { formShow: false, formTitle: '新增楼栋', + yihuyidangDisabled: false, + } }, components: { @@ -588,6 +591,7 @@ export default { //导出一户一档 handleExportYihuyidang () { + this.yihuyidangDisabled = true let title = this.agencyObj.label title = title + '-一户一档' let url = "/gov/org/house/exportHouseUser" @@ -604,16 +608,17 @@ export default { } - app.ajax.exportFilePost( url, params, (data, rspMsg) => { this.download(data, title + '.xls') + this.yihuyidangDisabled = false }, (rspMsg, data) => { this.$message.error(rspMsg); + this.yihuyidangDisabled = false } ); }, diff --git a/src/views/modules/base/community/communityTable.vue b/src/views/modules/base/community/communityTable.vue index 11aaf2be..5eb4596f 100644 --- a/src/views/modules/base/community/communityTable.vue +++ b/src/views/modules/base/community/communityTable.vue @@ -79,6 +79,7 @@ 导出一户一档 @@ -222,7 +223,8 @@ export default { files: "", fileName: "", - uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import' + uploadUlr: window.SITE_CONFIG['apiURL'] + '/gov/org/neighborhood/import', + yihuyidangDisabled: false, } }, @@ -569,6 +571,7 @@ export default { //导出一户一档 handleExportYihuyidang () { + this.yihuyidangDisabled = true let title = this.agencyObj.label title = title + '-一户一档' let url = "/gov/org/house/exportHouseUser" @@ -596,8 +599,10 @@ export default { (data, rspMsg) => { this.download(data, title + '.xls') + this.yihuyidangDisabled = false }, (rspMsg, data) => { + this.yihuyidangDisabled = false this.$message.error(rspMsg); } ); diff --git a/src/views/modules/base/community/roomTable.vue b/src/views/modules/base/community/roomTable.vue index 5f4c75f0..a3b8a17a 100644 --- a/src/views/modules/base/community/roomTable.vue +++ b/src/views/modules/base/community/roomTable.vue @@ -38,6 +38,7 @@ 导出一户一档 @@ -235,7 +236,9 @@ export default { value: '0', label: '自住' }, - ] + ], + + yihuyidangDisabled: false, } @@ -609,6 +612,7 @@ export default { //导出一户一档 handleExportYihuyidang () { + this.yihuyidangDisabled = true let title = this.agencyObj.label title = title + '-一户一档' let url = "/gov/org/house/exportHouseUser" @@ -631,9 +635,11 @@ export default { (data, rspMsg) => { this.download(data, title + '.xls') + this.yihuyidangDisabled = false }, (rspMsg, data) => { this.$message.error(rspMsg); + this.yihuyidangDisabled = false } ); },