|
@ -75,7 +75,11 @@ |
|
|
</div> --> |
|
|
</div> --> |
|
|
<div class="table-more-btn"> |
|
|
<div class="table-more-btn"> |
|
|
<el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text" |
|
|
<el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text" |
|
|
@click="handleExportIDCard()">下载电子门牌</el-button> |
|
|
@click="handleExportHouseDoorplate()">下载房屋电子门牌</el-button> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="table-more-btn"> |
|
|
|
|
|
<el-button :headers="$getElUploadHeaders()" class="diy-button--other" size="small" type="text" |
|
|
|
|
|
@click="handleExportUnitDoorplate()">下载单元电子门牌</el-button> |
|
|
</div> |
|
|
</div> |
|
|
<!-- <div |
|
|
<!-- <div |
|
|
v-if=" |
|
|
v-if=" |
|
@ -868,9 +872,9 @@ export default { |
|
|
|
|
|
|
|
|
//导入电子门牌信息 |
|
|
//导入电子门牌信息 |
|
|
|
|
|
|
|
|
handleExportIDCard() { |
|
|
handleExportHouseDoorplate() { |
|
|
let title = this.agencyObj.label; |
|
|
let title = this.agencyObj.label; |
|
|
title = title + "电子门牌信息"; |
|
|
title = title + "房屋电子门牌信息"; |
|
|
let url = "/actual/base/communityHouse/downloadZip"; |
|
|
let url = "/actual/base/communityHouse/downloadZip"; |
|
|
console.log(this.agencyObj) |
|
|
console.log(this.agencyObj) |
|
|
this.startLoading('正在生成,需要几分钟时间,请耐心等待...') |
|
|
this.startLoading('正在生成,需要几分钟时间,请耐心等待...') |
|
@ -912,6 +916,37 @@ export default { |
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleExportUnitDoorplate() { |
|
|
|
|
|
let title = this.agencyObj.label; |
|
|
|
|
|
title = title + "单元电子门牌信息"; |
|
|
|
|
|
let url = "/actual/base/communityBuildingUnit/downloadUnitDoorplateZip"; |
|
|
|
|
|
this.startLoading('正在生成,需要几分钟时间,请耐心等待...') |
|
|
|
|
|
let params = { |
|
|
|
|
|
level:this.agencyObj.level , |
|
|
|
|
|
id:this.agencyObj.id, |
|
|
|
|
|
}; |
|
|
|
|
|
// if (this.agencyObj.level === "grid") { |
|
|
|
|
|
// params.gridId = this.agencyObj.id; |
|
|
|
|
|
// params.agencyId = ""; |
|
|
|
|
|
// } else { |
|
|
|
|
|
// params.gridId = ""; |
|
|
|
|
|
// params.agencyId = this.agencyObj.id; |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
app.ajax.exportFilePost( |
|
|
|
|
|
url, |
|
|
|
|
|
params, |
|
|
|
|
|
(data, rspMsg) => { |
|
|
|
|
|
console.log(data) |
|
|
|
|
|
this.download(data, title + ".zip"); |
|
|
|
|
|
}, |
|
|
|
|
|
(rspMsg, data) => { |
|
|
|
|
|
this.$message.error(rspMsg); |
|
|
|
|
|
} |
|
|
|
|
|
); |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
//导出一户一档 |
|
|
//导出一户一档 |
|
|
handleExportYihuyidang() { |
|
|
handleExportYihuyidang() { |
|
|
this.yihuyidangDisabled = true; |
|
|
this.yihuyidangDisabled = true; |
|
|