From 69e2baf5518079bfc16cfadc2fb29842fb3de85d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 14 一月 2020 21:02:48 +0800
Subject: [PATCH] 加入userName

---
 WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js b/WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js
index 803af08..c8e225b 100644
--- a/WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js
+++ b/WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js
@@ -8,9 +8,9 @@
                 orgLevel: '',
                 parentOrgId: '',
                 belongCommunityId: '',
-                communityId: '',
                 description: '',
-                parentOrg: []
+                parentOrg: [],
+                belongCommunitys:[]
 
             }
         },
@@ -24,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.component.editOrgInfo.belongCommunityId;
+                //vc.component.editOrgInfo.communityId = vc.component.editOrgInfo.belongCommunityId;
             });
         },
         methods: {
@@ -105,9 +105,8 @@
                 });
             },
             editOrg: function () {
-                vc.component.editOrgInfo.belongCommunityId = vc.component.editOrgInfo.communityId;
                 if (!vc.component.editOrgValidate()) {
-                    vc.message(vc.validate.errInfo);
+                    vc.toast(vc.validate.errInfo);
                     return;
                 }
 
@@ -141,7 +140,10 @@
                     orgLevel: '',
                     parentOrgId: '',
                     description: '',
-                    parentOrg: []
+                    belongCommunityId: '',
+                    communityId: '',
+                    parentOrg: [],
+                    belongCommunitys:[]
                 }
             },
             _editOrgListParentOrgInfo: function () {
@@ -187,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('璇锋眰澶辫触澶勭悊');
                     }

--
Gitblit v1.8.0