From 670c2b8cce76ad46b83b3fe48cedc7852c6500aa Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Wed, 15 Jun 2022 14:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E8=83=BD=E4=B8=8B=E8=BD=BD=E5=8D=95?= =?UTF-8?q?=E4=B8=AA=E7=BD=91=E6=A0=BC=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epidemicbuildingunit-add-or-update.vue | 14 ++++----- .../personroom/epidemicbuildingunit.vue | 31 +++++++++++++++++-- 2 files changed, 36 insertions(+), 9 deletions(-) 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