Kaynağa Gözat

优化编辑时的错误

wuxw 6 yıl önce
ebeveyn
işleme
84baba4668

+ 1 - 3
WebService/src/main/resources/components/orgPackage/add-org/addOrg.js

@@ -13,7 +13,6 @@
                 parentOrgId: '',
                 parentOrgId: '',
                 description: '',
                 description: '',
                 belongCommunityId: '',
                 belongCommunityId: '',
-                communityId: '',
                 parentOrg:[],
                 parentOrg:[],
                 belongCommunitys:[]
                 belongCommunitys:[]
 
 
@@ -41,7 +40,7 @@
                     vc.component.addOrgInfo.parentOrgId = _param.parentOrgId;
                     vc.component.addOrgInfo.parentOrgId = _param.parentOrgId;
                     vc.component.addOrgInfo.orgLevel = _param.orgLevel;
                     vc.component.addOrgInfo.orgLevel = _param.orgLevel;
                     if(_param.orgLevel == 3){ // 部门是不能改小区的,是依赖分公司的小区信息
                     if(_param.orgLevel == 3){ // 部门是不能改小区的,是依赖分公司的小区信息
-                        vc.component.addOrgInfo.communityId = _param.belongCommunityId;
+                        vc.component.addOrgInfo.belongCommunityId = _param.belongCommunityId;
                     }
                     }
                 }
                 }
                 $('#addOrgModel').modal('show');
                 $('#addOrgModel').modal('show');
@@ -115,7 +114,6 @@
             }
             }
             ,
             ,
             saveOrgInfo: function () {
             saveOrgInfo: function () {
-                vc.component.addOrgInfo.belongCommunityId = vc.component.addOrgInfo.communityId;
                 if (!vc.component.addOrgValidate()) {
                 if (!vc.component.addOrgValidate()) {
                     vc.message(vc.validate.errInfo);
                     vc.message(vc.validate.errInfo);
 
 

+ 2 - 4
WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js

@@ -8,7 +8,6 @@
                 orgLevel: '',
                 orgLevel: '',
                 parentOrgId: '',
                 parentOrgId: '',
                 belongCommunityId: '',
                 belongCommunityId: '',
-                communityId: '',
                 description: '',
                 description: '',
                 parentOrg: [],
                 parentOrg: [],
                 belongCommunitys:[]
                 belongCommunitys:[]
@@ -25,14 +24,14 @@
         },
         },
         _initMethod: function () {
         _initMethod: function () {
             vc.component._editOrgListParentOrgInfo();
             vc.component._editOrgListParentOrgInfo();
-            vc.component._loadEditEnterCommunitys();
         },
         },
         _initEvent: function () {
         _initEvent: function () {
             vc.on('editOrg', 'openEditOrgModal', function (_params) {
             vc.on('editOrg', 'openEditOrgModal', function (_params) {
                 vc.component.refreshEditOrgInfo();
                 vc.component.refreshEditOrgInfo();
+                vc.component._loadEditEnterCommunitys();
                 $('#editOrgModel').modal('show');
                 $('#editOrgModel').modal('show');
                 vc.copyObject(_params, vc.component.editOrgInfo);
                 vc.copyObject(_params, vc.component.editOrgInfo);
-                vc.component.editOrgInfo.communityId = vc.component.editOrgInfo.belongCommunityId;
+                //vc.component.editOrgInfo.communityId = vc.component.editOrgInfo.belongCommunityId;
             });
             });
         },
         },
         methods: {
         methods: {
@@ -106,7 +105,6 @@
                 });
                 });
             },
             },
             editOrg: function () {
             editOrg: function () {
-                vc.component.editOrgInfo.belongCommunityId = vc.component.editOrgInfo.communityId;
                 if (!vc.component.editOrgValidate()) {
                 if (!vc.component.editOrgValidate()) {
                     vc.message(vc.validate.errInfo);
                     vc.message(vc.validate.errInfo);
                     return;
                     return;