| | |
| | | parentOrgId: '', |
| | | description: '', |
| | | belongCommunityId: '', |
| | | communityId: '', |
| | | parentOrg:[], |
| | | belongCommunitys:[] |
| | | |
| | |
| | | vc.component.addOrgInfo.parentOrgId = _param.parentOrgId; |
| | | vc.component.addOrgInfo.orgLevel = _param.orgLevel; |
| | | if(_param.orgLevel == 3){ // 部门是不能改小区的,是依赖分公司的小区信息 |
| | | vc.component.addOrgInfo.communityId = _param.belongCommunityId; |
| | | vc.component.addOrgInfo.belongCommunityId = _param.belongCommunityId; |
| | | } |
| | | } |
| | | $('#addOrgModel').modal('show'); |
| | |
| | | } |
| | | , |
| | | saveOrgInfo: function () { |
| | | vc.component.addOrgInfo.belongCommunityId = vc.component.addOrgInfo.communityId; |
| | | if (!vc.component.addOrgValidate()) { |
| | | vc.message(vc.validate.errInfo); |
| | | |
| | |
| | | orgLevel: '', |
| | | parentOrgId: '', |
| | | belongCommunityId: '', |
| | | communityId: '', |
| | | description: '', |
| | | parentOrg: [], |
| | | belongCommunitys:[] |
| | |
| | | }, |
| | | _initMethod: function () { |
| | | vc.component._editOrgListParentOrgInfo(); |
| | | vc.component._loadEditEnterCommunitys(); |
| | | }, |
| | | _initEvent: function () { |
| | | vc.on('editOrg', 'openEditOrgModal', function (_params) { |
| | | vc.component.refreshEditOrgInfo(); |
| | | vc.component._loadEditEnterCommunitys(); |
| | | $('#editOrgModel').modal('show'); |
| | | vc.copyObject(_params, vc.component.editOrgInfo); |
| | | vc.component.editOrgInfo.communityId = vc.component.editOrgInfo.belongCommunityId; |
| | | //vc.component.editOrgInfo.communityId = vc.component.editOrgInfo.belongCommunityId; |
| | | }); |
| | | }, |
| | | methods: { |
| | |
| | | }); |
| | | }, |
| | | editOrg: function () { |
| | | vc.component.editOrgInfo.belongCommunityId = vc.component.editOrgInfo.communityId; |
| | | if (!vc.component.editOrgValidate()) { |
| | | vc.message(vc.validate.errInfo); |
| | | return; |