From 70712b42c474b9214ccad4bd4701e14c035f7ccf Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Fri, 24 Jun 2022 14:19:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/personroom/epidemicbuildingunit.vue | 7 +++++-- src/views/modules/personroom/epidemicplotbuilding.vue | 5 +++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/views/modules/personroom/epidemicbuildingunit.vue b/src/views/modules/personroom/epidemicbuildingunit.vue index e6cae63..76169e2 100644 --- a/src/views/modules/personroom/epidemicbuildingunit.vue +++ b/src/views/modules/personroom/epidemicbuildingunit.vue @@ -438,8 +438,11 @@ export default { }, beforeImportUser () { //所属组织全都不选,直接上传 - if (this.gridIdImport === '') { - document.getElementById('importBut').click() + if (this.gridIdImport === '' || this.gridIdImport === undefined) { + this.$message({ + type: 'warning', + message: '请先选择网格' + }); return false } //选中网格 diff --git a/src/views/modules/personroom/epidemicplotbuilding.vue b/src/views/modules/personroom/epidemicplotbuilding.vue index bc2330d..8284405 100644 --- a/src/views/modules/personroom/epidemicplotbuilding.vue +++ b/src/views/modules/personroom/epidemicplotbuilding.vue @@ -300,10 +300,11 @@ export default { }, beforeImportUser () { //所属组织全都不选,直接上传 - if (this.gridIdImport === '') { + if (this.gridIdImport === '' || this.gridIdImport === undefined) { document.getElementById('importBut').click() - return false + return } + console.log("111") //选中网格 let selectGird = this.$refs['deptTree'].getCheckedNodes()[0].label