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 } ); },