diff --git a/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue b/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue
index 3a6d12a..270a741 100644
--- a/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue
+++ b/src/views/modules/personroom/epidemicbuildingunit-add-or-update.vue
@@ -5,7 +5,7 @@
-
+
-
-
-
+
-
+
-
+
-
+
diff --git a/src/views/modules/personroom/epidemicbuildingunit.vue b/src/views/modules/personroom/epidemicbuildingunit.vue
index a0ac7c9..2a6bf60 100644
--- a/src/views/modules/personroom/epidemicbuildingunit.vue
+++ b/src/views/modules/personroom/epidemicbuildingunit.vue
@@ -39,8 +39,7 @@
-
@@ -146,6 +145,16 @@
生成缩略图
+
+
+
+
+
批量下载
@@ -182,6 +191,8 @@ export default {
faultDataVisible: false,
errordataList: [],
deptIdListUpload: [],
+ gridIdDownload: '',
+ deptIdListDownload: [],
roomTypeArr: [],
roomUseArr: [],
dataForm: {
@@ -203,6 +214,13 @@ export default {
} else {
this.gridIdImport = ''
}
+ },
+ 'deptIdListDownload': function (val) {
+ if (val.length > 0) {
+ this.gridIdDownload = val[val.length - 1]
+ } else {
+ this.gridIdDownload = ''
+ }
}
},
created: function () {
@@ -316,10 +334,19 @@ export default {
}).catch(() => {})
},
downloadUrl () {
+ if (this.gridIdDownload === ''){
+ this.$message({
+ type: 'warning',
+ message: '请选择网格'
+ });
+ return
+ }
+
this.zLoading = true
this.$http(
{ method: 'post',
url: '/custom/epidemicbuildingunit/downloadZip',
+ data: {gridId: this.gridIdDownload},
responseType: 'blob'}).then(({ data: res }) => {
if (!res) {
this.zLoading = false