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

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

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

Loading…
Cancel
Save