吴学文
2019-07-10 4ee6445f67bbb56caa2b2f981afce6e87cc602af
WebService/src/main/resources/components/community-manage/communityManage.js
@@ -13,7 +13,7 @@
            }
        },
        _initMethod:function(){
            vc.component.listCommunity(DEFAULT_PAGE, DEFAULT_ROWS);
            vc.component._listCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
        },
        _initEvent:function(){
            vc.on('communityManage','listCommunity',function(_param){
@@ -41,13 +41,17 @@
                                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);
@@ -57,4 +61,4 @@
            }
        }
    });
})(window.vc);
})(window.vc);