From 3e77432495dcbca5b2ba3b03e5f18246777fca75 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 05 五月 2019 18:02:31 +0800
Subject: [PATCH] 代码暂存 未开发完成

---
 WebService/src/main/resources/components/unit/unit.js |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/WebService/src/main/resources/components/unit/unit.js b/WebService/src/main/resources/components/unit/unit.js
index 023fae3..e9f26ab 100644
--- a/WebService/src/main/resources/components/unit/unit.js
+++ b/WebService/src/main/resources/components/unit/unit.js
@@ -17,19 +17,20 @@
         },
         methods:{
             _loadUnits:function(_param){
-                vc.component.staffPrivilegeInfo._currentFloorId=_param.floorId;
+                vc.component.unitInfo._currentFloorId=_param.floorId;
                 var param = {
                     params:{
-                        floorId:_param.floorId
+                        floorId:_param.floorId,
+                        communityId:vc.getCurrentCommunity().communityId
                     }
                 };
              //鍙戦�乬et璇锋眰
             vc.http.get('unit',
-                         'loadUnit',
+                         'loadUnits',
                           param,
                           function(json){
                              var _unitInfo = JSON.parse(json);
-                             vc.component.unitInfo.units = _unitInfo.datas;
+                             vc.component.unitInfo.units = _unitInfo;
 
                           },function(){
                              console.log('璇锋眰澶辫触澶勭悊');
@@ -38,6 +39,10 @@
             _openDeleteUnitModel:function(_unit){
                 _unit.floorId = vc.component.unitInfo._currentFloorId;
                 vc.emit('deleteUnit','openUnitModel',_unit);
+            },
+            _openEditUnitModel:function(_unit){
+                _unit.floorId = vc.component.unitInfo._currentFloorId;
+                vc.emit('editUnit','openUnitModel',_unit);
             }
         }
     });

--
Gitblit v1.8.0