| | |
| | | } |
| | | , |
| | | _initMethod: function () { |
| | | //查询入驻的小区 |
| | | vc.component._loadAddEnterCommunitys(); |
| | | |
| | | } |
| | | , |
| | | _initEvent: function () { |
| | |
| | | vc.component.addOrgInfo.belongCommunityId = _param.belongCommunityId; |
| | | } |
| | | } |
| | | //查询入驻的小区 |
| | | vc.component._loadAddEnterCommunitys(); |
| | | $('#addOrgModel').modal('show'); |
| | | }); |
| | | } |
| | |
| | | errInfo: "上级ID不正确" |
| | | }, |
| | | ], |
| | | 'addOrgInfo.belongCommunityId': [ |
| | | { |
| | | limit: "required", |
| | | param: "", |
| | | errInfo: "隶属小区不能为空" |
| | | }, |
| | | { |
| | | limit: "num", |
| | | param: "", |
| | | errInfo: "隶属小区不正确" |
| | | }, |
| | | ], |
| | | 'addOrgInfo.description': [ |
| | | |
| | | { |
| | |
| | | , |
| | | saveOrgInfo: function () { |
| | | if (!vc.component.addOrgValidate()) { |
| | | vc.message(vc.validate.errInfo); |
| | | vc.toast(vc.validate.errInfo); |
| | | |
| | | return; |
| | | } |
| | | |
| | | vc.component.addOrgInfo.communityId = vc.getCurrentCommunity().communityId; |
| | | //vc.component.addOrgInfo.communityId = vc.getCurrentCommunity().communityId; |
| | | //不提交数据将数据 回调给侦听处理 |
| | | if (vc.notNull($props.callBackListener)) { |
| | | vc.emit($props.callBackListener, $props.callBackFunction, vc.component.addOrgInfo); |