| | |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | vc.component.listCommunity(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('communityManage','listCommunity',function(_param){ |
| | |
| | | vc.component.communityManageInfo.total = _communityManageInfo.total; |
| | | vc.component.communityManageInfo.records = _communityManageInfo.records; |
| | | vc.component.communityManageInfo.communitys = _communityManageInfo.communitys; |
| | | vc.emit('pagination','init',{ |
| | | total:vc.component.communityManageInfo.records, |
| | | currentPage:_page |
| | | }); |
| | | },function(errInfo,error){ |
| | | console.log('请求失败处理'); |
| | | } |
| | | ); |
| | | }, |
| | | _openAddCommunityModal:function(){ |
| | | vc.emit('addCommunity','openAddCommunity',{}); |
| | | vc.emit('addCommunity','openAddCommunityModal',{}); |
| | | }, |
| | | _openEditCommunityModel:function(_community){ |
| | | vc.emit('editCommunity','openEditCommunityModal',_community); |
| | |
| | | } |
| | | } |
| | | }); |
| | | })(window.vc); |
| | | })(window.vc); |