From e7e6bbdbbad5dcb16e386eec1492191e8ddfb237 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 29 十二月 2019 13:35:37 +0800
Subject: [PATCH] 加入服务实现

---
 WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js |   31 ++++++++++++++++++++++++++++---
 1 files changed, 28 insertions(+), 3 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 1a6d0d1..190d7ae 100644
--- a/WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js
+++ b/WebService/src/main/resources/components/orgPackage/edit-org/editOrg.js
@@ -9,7 +9,8 @@
                 parentOrgId: '',
                 belongCommunityId: '',
                 description: '',
-                parentOrg: []
+                parentOrg: [],
+                belongCommunitys:[]
 
             }
         },
@@ -27,9 +28,10 @@
         _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: {
@@ -138,7 +140,10 @@
                     orgLevel: '',
                     parentOrgId: '',
                     description: '',
-                    parentOrg: []
+                    belongCommunityId: '',
+                    communityId: '',
+                    parentOrg: [],
+                    belongCommunitys:[]
                 }
             },
             _editOrgListParentOrgInfo: function () {
@@ -169,6 +174,26 @@
                         console.log('璇锋眰澶辫触澶勭悊');
                     }
                 );
+            },
+            _loadEditEnterCommunitys: function () {
+                //belongCommunitys
+                var param = {
+                    params: {
+                        _uid: 'mmmllnnjhhjjh'
+                    }
+                }
+
+                //鍙戦�乬et璇锋眰
+                vc.http.get('editOrg',
+                    'listEnterCommunitys',
+                    param,
+                    function (json, res) {
+                        var _enterCommunitys = JSON.parse(json);
+                        vc.component.editOrgInfo.belongCommunitys = _enterCommunitys;
+                    }, function (errInfo, error) {
+                        console.log('璇锋眰澶辫触澶勭悊');
+                    }
+                );
             }
         }
     });

--
Gitblit v1.8.0