From 764c588b50fa61d3b8d716a31056a1c8b1a24b59 Mon Sep 17 00:00:00 2001 From: wuxw <928255095@qq.com> Date: Sun, 3 May 2020 10:20:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/pages/property/unit/unit.html | 3 +-- public/pages/property/unit/unit.js | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/public/pages/property/unit/unit.html b/public/pages/property/unit/unit.html index c715828b5..f0753d796 100644 --- a/public/pages/property/unit/unit.html +++ b/public/pages/property/unit/unit.html @@ -70,9 +70,8 @@
单元信息
diff --git a/public/pages/property/unit/unit.js b/public/pages/property/unit/unit.js index 721bc7889..b3872c3f3 100644 --- a/public/pages/property/unit/unit.js +++ b/public/pages/property/unit/unit.js @@ -71,6 +71,10 @@ vc.emit('searchFloor','openSearchFloorModel',{}); }, openAddUnitModel:function(){ + if(!vc.isNotEmpty($that.unitInfo.conditions.floorId)){ + vc.toast('请先选择楼栋'); + return ; + } vc.emit('addUnit','addUnitModel',{ floorId:vc.component.unitInfo.conditions.floorId });