wuxw
2020-02-14 678e600e230fce0bea3e499dc58c43e009fc606d
WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js
@@ -9,7 +9,8 @@
                parentOrgId: '',
                belongCommunityId: '',
                description: '',
                parentOrg: []
                parentOrg: [],
                belongCommunitys:[]
            }
        },
@@ -23,14 +24,14 @@
        },
        _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: {
@@ -105,7 +106,7 @@
            },
            editOrg: function () {
                if (!vc.component.editOrgValidate()) {
                    vc.message(vc.validate.errInfo);
                    vc.toast(vc.validate.errInfo);
                    return;
                }
@@ -139,7 +140,10 @@
                    orgLevel: '',
                    parentOrgId: '',
                    description: '',
                    parentOrg: []
                    belongCommunityId: '',
                    communityId: '',
                    parentOrg: [],
                    belongCommunitys:[]
                }
            },
            _editOrgListParentOrgInfo: function () {
@@ -171,11 +175,11 @@
                    }
                );
            },
            _loadEditEnterCommunitys:function () {
            _loadEditEnterCommunitys: function () {
                //belongCommunitys
                var param = {
                    params:{
                        _uid:'mmmllnnjhhjjh'
                    params: {
                        _uid: 'mmmllnnjhhjjh'
                    }
                }
@@ -185,7 +189,7 @@
                    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('请求失败处理');
                    }