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