| | |
| | | parentOrgId: '', |
| | | description: '', |
| | | belongCommunityId: '', |
| | | communityId: '', |
| | | parentOrg:[], |
| | | belongCommunitys:[] |
| | | |
| | |
| | | } |
| | | , |
| | | _initMethod: function () { |
| | | //查询入驻的小区 |
| | | vc.component._loadAddEnterCommunitys(); |
| | | |
| | | } |
| | | , |
| | | _initEvent: function () { |
| | |
| | | if (_param.hasOwnProperty('parentOrgId')) { |
| | | vc.component.addOrgInfo.parentOrgId = _param.parentOrgId; |
| | | vc.component.addOrgInfo.orgLevel = _param.orgLevel; |
| | | if(_param.parentOrgId == 3){ // 部门是不能改小区的,是依赖分公司的小区信息 |
| | | vc.component.addOrgInfo.communityId = _param.belongCommunityId; |
| | | if(_param.orgLevel == 3){ // 部门是不能改小区的,是依赖分公司的小区信息 |
| | | vc.component.addOrgInfo.belongCommunityId = _param.belongCommunityId; |
| | | } |
| | | } |
| | | //查询入驻的小区 |
| | | vc.component._loadAddEnterCommunitys(); |
| | | $('#addOrgModel').modal('show'); |
| | | }); |
| | | } |
| | |
| | | } |
| | | , |
| | | saveOrgInfo: function () { |
| | | vc.component.addOrgInfo.belongCommunityId = vc.component.addOrgInfo.communityId; |
| | | if (!vc.component.addOrgValidate()) { |
| | | vc.message(vc.validate.errInfo); |
| | | |