| | |
| | | }); |
| | | vc.component._getOrgsByOrgLevel(DEFAULT_PAGE, DEFAULT_ROWS,1,''); |
| | | |
| | | |
| | | }, |
| | | _initEvent:function(){ |
| | | |
| | |
| | | }); |
| | | $('#orgTree').on('nodeSelected', function(event, data) { |
| | | console.log(event,data); |
| | | vc.component.orgManageInfo.conditions.orgLevel=data.orgLevel; |
| | | vc.component.orgManageInfo.conditions.parentOrgId=data.orgId; |
| | | vc.component._listOrgs(DEFAULT_PAGE, DEFAULT_ROWS); |
| | | }); |
| | | }, |
| | | _loadBranchOrgTrees:function(){ |
| | |
| | | _tmpOrgs.forEach(function (_item) { |
| | | _nodes.push({ |
| | | orgId:_item.orgId, |
| | | orgLevel:_orgLevel, |
| | | text:_item.orgName, |
| | | href:function(_item){}, |
| | | tags:[0], |