From e64197421cf28099935f71f193989a3394d47fe0 Mon Sep 17 00:00:00 2001
From: mrzcc <121184950@qq.com>
Date: 星期一, 17 二月 2020 18:12:38 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 WebService/src/main/resources/components/orgPackage/orgCommunityManage/orgCommunityManage.js |  100 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 100 insertions(+), 0 deletions(-)

diff --git a/WebService/src/main/resources/components/orgPackage/orgCommunityManage/orgCommunityManage.js b/WebService/src/main/resources/components/orgPackage/orgCommunityManage/orgCommunityManage.js
new file mode 100644
index 0000000..91c32f4
--- /dev/null
+++ b/WebService/src/main/resources/components/orgPackage/orgCommunityManage/orgCommunityManage.js
@@ -0,0 +1,100 @@
+/**
+ 鍏ラ┗灏忓尯
+ **/
+(function (vc) {
+    var DEFAULT_PAGE = 1;
+    var DEFAULT_ROWS = 10;
+    var ALL_ROWS = 100;
+    vc.extends({
+        data: {
+            orgCommunityManageInfo: {
+                orgCommunitys: [],
+                total: 0,
+                records: 1,
+                moreCondition: false,
+                orgId:'',
+                orgName:''
+
+            }
+        },
+        _initMethod: function () {
+
+        },
+        _initEvent: function () {
+            vc.on('orgCommunityManageInfo', 'openOrgCommunity', function (_param) {
+                vc.copyObject(_param, vc.component.orgCommunityManageInfo);
+                vc.component._listOrgCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
+            });
+            vc.on('orgCommunityManageInfo', 'listOrgCommunity', function (_param) {
+                //vc.copyObject(_param, vc.component.orgCommunityManageInfo.conditions);
+                vc.component._listOrgCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
+            });
+            vc.on('pagination', 'page_event', function (_currentPage) {
+                vc.component._listOrgCommunitys(_currentPage, DEFAULT_ROWS);
+            });
+
+        },
+        methods: {
+            _listOrgCommunitys: function (_page, _rows) {
+
+                var param = {
+                    params: {
+                        page:_page,
+                        row:_rows,
+                        orgId:vc.component.orgCommunityManageInfo.orgId
+                    }
+                };
+
+                //鍙戦�乬et璇锋眰
+                vc.http.get('orgCommunityManage',
+                    'list',
+                    param,
+                    function (json, res) {
+                        var _orgCommunityManageInfo = JSON.parse(json);
+                        vc.component.orgCommunityManageInfo.total = _orgCommunityManageInfo.total;
+                        vc.component.orgCommunityManageInfo.records = _orgCommunityManageInfo.records;
+                        vc.component.orgCommunityManageInfo.orgCommunitys = _orgCommunityManageInfo.orgCommunitys;
+                        vc.emit('pagination', 'init', {
+                            total: vc.component.orgCommunityManageInfo.records,
+                            currentPage: _page
+                        });
+                    }, function (errInfo, error) {
+                        console.log('璇锋眰澶辫触澶勭悊');
+                    }
+                );
+            },
+            _openAddOrgCommunityModal: function () {
+                vc.emit('addOrgCommunity', 'openAddOrgCommunityModal', {
+                    orgId: vc.component.orgCommunityManageInfo.orgId,
+                    orgName: vc.component.orgCommunityManageInfo.orgName
+                });
+            },
+            _openEditOrgCommunityModel: function (_orgCommunity) {
+                vc.emit('editOrgCommunity', 'openEditOrgCommunityModal', _orgCommunity);
+            },
+            _openDeleteOrgCommunityModel: function (_orgCommunity) {
+                vc.emit('deleteOrgCommunity', 'openDeleteOrgCommunityModal', _orgCommunity);
+            },
+            _openBeyondCommunity:function(_orgCommunity){
+            },
+            _queryOrgCommunityMethod: function () {
+                vc.component._listOrgCommunitys(DEFAULT_PAGE, DEFAULT_ROWS);
+
+            },
+            _moreCondition: function () {
+                if (vc.component.orgCommunityManageInfo.moreCondition) {
+                    vc.component.orgCommunityManageInfo.moreCondition = false;
+                } else {
+                    vc.component.orgCommunityManageInfo.moreCondition = true;
+                }
+            },
+            _goBack:function(){
+                vc.emit('orgManage','onBack',{});
+            }
+
+
+
+
+        }
+    });
+})(window.vc);

--
Gitblit v1.8.0