| | |
| | | |
| | | }, |
| | | _initEvent:function(){ |
| | | |
| | | vc.on('unit','loadUnit',function(_param){ |
| | | vc.component._loadUnits(_param); |
| | | }); |
| | | vc.on('unit','loadData',function(_param){ |
| | | vc.component._loadUnits(_param); |
| | | }); |
| | | }, |
| | |
| | | var param = { |
| | | params:{ |
| | | floorId:_param.floorId, |
| | | communityId:communityId:vc.getCurrentCommunity().communityId |
| | | communityId:vc.getCurrentCommunity().communityId |
| | | } |
| | | }; |
| | | //发送get请求 |
| | |
| | | _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); |
| | | } |
| | | } |
| | | }); |