| | |
| | | parentOrgId: '', |
| | | belongCommunityId: '', |
| | | description: '', |
| | | parentOrg: [] |
| | | 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.getCurrentCommunity().communityId; |
| | | //vc.component.editOrgInfo.communityId = vc.component.editOrgInfo.belongCommunityId; |
| | | }); |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | editOrg: function () { |
| | | if (!vc.component.editOrgValidate()) { |
| | | vc.message(vc.validate.errInfo); |
| | | vc.toast(vc.validate.errInfo); |
| | | return; |
| | | } |
| | | |
| | |
| | | orgLevel: '', |
| | | parentOrgId: '', |
| | | description: '', |
| | | parentOrg: [] |
| | | belongCommunityId: '', |
| | | communityId: '', |
| | | parentOrg: [], |
| | | belongCommunitys:[] |
| | | } |
| | | }, |
| | | _editOrgListParentOrgInfo: function () { |
| | |
| | | } |
| | | ); |
| | | }, |
| | | _loadEditEnterCommunitys:function () { |
| | | _loadEditEnterCommunitys: function () { |
| | | //belongCommunitys |
| | | var param = { |
| | | params:{ |
| | | _uid:'mmmllnnjhhjjh' |
| | | params: { |
| | | _uid: 'mmmllnnjhhjjh' |
| | | } |
| | | } |
| | | |
| | |
| | | param, |
| | | function (json, res) { |
| | | var _enterCommunitys = JSON.parse(json); |
| | | vc.component.editOrgInfo.belongCommunitys = _enterCommunitys.communitys; |
| | | vc.component.editOrgInfo.belongCommunitys = _enterCommunitys; |
| | | }, function (errInfo, error) { |
| | | console.log('请求失败处理'); |
| | | } |