Browse Source

一户一档导出防重复

shibei_master
jiangyy 3 years ago
parent
commit
5628026ac6
  1. 7
      src/views/modules/base/community/buildTable.vue
  2. 7
      src/views/modules/base/community/communityTable.vue
  3. 8
      src/views/modules/base/community/roomTable.vue

7
src/views/modules/base/community/buildTable.vue

@ -55,6 +55,7 @@
<el-button style=";margin-left:10px" <el-button style=";margin-left:10px"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
:disabled="yihuyidangDisabled"
@click="handleExportYihuyidang()">导出一户一档</el-button> @click="handleExportYihuyidang()">导出一户一档</el-button>
</div> </div>
@ -227,6 +228,8 @@ export default {
formShow: false, formShow: false,
formTitle: '新增楼栋', formTitle: '新增楼栋',
yihuyidangDisabled: false,
} }
}, },
components: { components: {
@ -588,6 +591,7 @@ export default {
// //
handleExportYihuyidang () { handleExportYihuyidang () {
this.yihuyidangDisabled = true
let title = this.agencyObj.label let title = this.agencyObj.label
title = title + '-一户一档' title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser" let url = "/gov/org/house/exportHouseUser"
@ -604,16 +608,17 @@ export default {
} }
app.ajax.exportFilePost( app.ajax.exportFilePost(
url, url,
params, params,
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.yihuyidangDisabled = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.yihuyidangDisabled = false
} }
); );
}, },

7
src/views/modules/base/community/communityTable.vue

@ -79,6 +79,7 @@
<el-button style=";margin-left:10px" <el-button style=";margin-left:10px"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
:disabled="yihuyidangDisabled"
@click="handleExportYihuyidang()">导出一户一档</el-button> @click="handleExportYihuyidang()">导出一户一档</el-button>
</div> </div>
@ -222,7 +223,8 @@ export default {
files: "", files: "",
fileName: "", 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 () { handleExportYihuyidang () {
this.yihuyidangDisabled = true
let title = this.agencyObj.label let title = this.agencyObj.label
title = title + '-一户一档' title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser" let url = "/gov/org/house/exportHouseUser"
@ -596,8 +599,10 @@ export default {
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.yihuyidangDisabled = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.yihuyidangDisabled = false
this.$message.error(rspMsg); this.$message.error(rspMsg);
} }
); );

8
src/views/modules/base/community/roomTable.vue

@ -38,6 +38,7 @@
<el-button style=";margin-left:10px" <el-button style=";margin-left:10px"
class="diy-button--export" class="diy-button--export"
size="small" size="small"
:disabled="yihuyidangDisabled"
@click="handleExportYihuyidang()">导出一户一档</el-button> @click="handleExportYihuyidang()">导出一户一档</el-button>
</div> </div>
@ -235,7 +236,9 @@ export default {
value: '0', value: '0',
label: '自住' label: '自住'
}, },
] ],
yihuyidangDisabled: false,
} }
@ -609,6 +612,7 @@ export default {
// //
handleExportYihuyidang () { handleExportYihuyidang () {
this.yihuyidangDisabled = true
let title = this.agencyObj.label let title = this.agencyObj.label
title = title + '-一户一档' title = title + '-一户一档'
let url = "/gov/org/house/exportHouseUser" let url = "/gov/org/house/exportHouseUser"
@ -631,9 +635,11 @@ export default {
(data, rspMsg) => { (data, rspMsg) => {
this.download(data, title + '.xls') this.download(data, title + '.xls')
this.yihuyidangDisabled = false
}, },
(rspMsg, data) => { (rspMsg, data) => {
this.$message.error(rspMsg); this.$message.error(rspMsg);
this.yihuyidangDisabled = false
} }
); );
}, },

Loading…
Cancel
Save