|
|
@ -39,12 +39,12 @@ |
|
|
|
<el-button size="small" type="text" class="diy-button--other">导入房屋数据</el-button> |
|
|
|
</el-upload> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-button size="small" style="float: right" class="diy-button--white" slot="reference">导入<i |
|
|
|
class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
|
</el-popover> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<el-button style="margin-left: 10px" class="diy-button--white" size="small" |
|
|
|
@click="handleExportOpen">导出</el-button> |
|
|
|
|
|
|
@ -75,7 +75,11 @@ |
|
|
|
</div> --> |
|
|
|
<div class="table-more-btn"> |
|
|
|
<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 |
|
|
|
v-if=" |
|
|
@ -386,7 +390,7 @@ export default { |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getQueryConditions(); |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
@ -429,7 +433,7 @@ export default { |
|
|
|
updateStartDate: this.updateStartDate, |
|
|
|
updateEndDate: this.updateEndDate, |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
this.$refs.baobiao.init({ |
|
|
|
elseParams: { |
|
|
|
categoryKeys: ["house_info"], |
|
|
@ -865,19 +869,19 @@ export default { |
|
|
|
} |
|
|
|
); |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
//导入电子门牌信息 |
|
|
|
|
|
|
|
handleExportIDCard() { |
|
|
|
|
|
|
|
handleExportHouseDoorplate() { |
|
|
|
let title = this.agencyObj.label; |
|
|
|
title = title + "电子门牌信息"; |
|
|
|
title = title + "房屋电子门牌信息"; |
|
|
|
let url = "/actual/base/communityHouse/downloadZip"; |
|
|
|
console.log(this.agencyObj) |
|
|
|
this.startLoading('正在生成,需要几分钟时间,请耐心等待...') |
|
|
|
let params = { |
|
|
|
pageSize:this.pageSize, |
|
|
|
pageNo:this.pageNo, |
|
|
|
level:this.agencyObj.level , |
|
|
|
level:this.agencyObj.level , |
|
|
|
id:this.agencyObj.id, |
|
|
|
ownerName: this.ownerName, |
|
|
|
ownerPhone: this.ownerPhone, |
|
|
@ -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() { |
|
|
|
this.yihuyidangDisabled = true; |
|
|
|