wuxw
2019-12-29 e7e6bbdbbad5dcb16e386eec1492191e8ddfb237
WebService/src/main/resources/components/orgPackage/add-org/addOrg.js
@@ -13,7 +13,6 @@
                parentOrgId: '',
                description: '',
                belongCommunityId: '',
                communityId: '',
                parentOrg:[],
                belongCommunitys:[]
@@ -31,8 +30,7 @@
        }
        ,
        _initMethod: function () {
            //查询入驻的小区
            vc.component._loadAddEnterCommunitys();
        }
        ,
        _initEvent: function () {
@@ -40,10 +38,12 @@
                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');
            });
        }
@@ -115,7 +115,6 @@
            }
            ,
            saveOrgInfo: function () {
                vc.component.addOrgInfo.belongCommunityId = vc.component.addOrgInfo.communityId;
                if (!vc.component.addOrgValidate()) {
                    vc.message(vc.validate.errInfo);