From 0ccc1acde868a6ae9c5d142048d23972809780bf Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 30 Aug 2022 09:44:04 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: java110 <928255095@qq.com> --- .../editPropertyCommunity/editPropertyCommunity.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/public/components/admin/editPropertyCommunity/editPropertyCommunity.js b/public/components/admin/editPropertyCommunity/editPropertyCommunity.js index cfd415b0e..7123b00e6 100644 --- a/public/components/admin/editPropertyCommunity/editPropertyCommunity.js +++ b/public/components/admin/editPropertyCommunity/editPropertyCommunity.js @@ -16,11 +16,12 @@ }, _initEvent: function() { vc.on('editPropertyCommunity', 'openEditPropertyCommunityModal', function(_param) { + $that.editPropertyCommunityInfo.groupIds = []; + $that.editPropertyCommunityInfo.communityId = _param.communityId; $that._listEditPropertyCommunityMenuGroups(); $that._listMenuGroupCommunity(); $that.editPropertyCommunityInfo.memberId = _param.storeId; - $that.editPropertyCommunityInfo.communityId = _param.communityId; $that.editPropertyCommunityInfo.name = _param.name; $('#editPropertyCommunityModel').modal('show'); }); @@ -66,11 +67,13 @@ changeEditAllCommunity: function() { $that.editPropertyCommunityInfo.groupIds = []; if (!$that.editPropertyCommunityInfo.isAll) { + $that.editPropertyCommunityInfo.isAll = true; return; } $that.editPropertyCommunityInfo.menuGroups.forEach(item => { - $that.editPropertyCommunityInfo.groupIds.push(item.groupId); + //$that.editPropertyCommunityInfo.groupIds.push(item.groupId); + $that.editPropertyCommunityInfo.groupIds.push(item.gId); }); }, changeEditItemCommunity: function() { @@ -97,6 +100,7 @@ let _propertyCompanyManageInfo = JSON.parse(json); $that.editPropertyCommunityInfo.menuGroups = _propertyCompanyManageInfo.data; + $that._listMenuGroupCommunity(); }, function(errInfo, error) { console.log('请求失败处理'); @@ -122,7 +126,7 @@ _propertyCompanyManageInfo.data.forEach(item => { $that.editPropertyCommunityInfo.groupIds.push(item.gId); }) - + $that.changeEditItemCommunity(); }, function(errInfo, error) { console.log('请求失败处理');