Browse Source

Merge branch 'wxz_unit_doorplate' into feature

7.31^2
wxz 1 year ago
parent
commit
e39f07f7a2
  1. 41
      src/views/modules/base/community/communityTable.vue

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

@ -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="
@ -868,9 +872,9 @@ 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('正在生成,需要几分钟时间,请耐心等待...')
@ -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;

Loading…
Cancel
Save