diff --git a/public/components/frame/searchCommunityData/searchCommunityData.js b/public/components/frame/searchCommunityData/searchCommunityData.js index d214c0109..ca92e611c 100644 --- a/public/components/frame/searchCommunityData/searchCommunityData.js +++ b/public/components/frame/searchCommunityData/searchCommunityData.js @@ -142,6 +142,10 @@ }; }, _initTelMachine: function (_page, _row) { + let _communityId = vc.getCurrentCommunity().communityId; + if(!_communityId || _communityId == '-1'){ + return; + } let param = { params: { page: 1, diff --git a/public/components/staff/deleteSystemUser/deleteSystemUser.js b/public/components/staff/deleteSystemUser/deleteSystemUser.js index 955e1dc13..513ea141d 100644 --- a/public/components/staff/deleteSystemUser/deleteSystemUser.js +++ b/public/components/staff/deleteSystemUser/deleteSystemUser.js @@ -22,11 +22,13 @@ }, function (json, res) { //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); - if (res.status == 200) { + let _json = JSON.parse(json); + vc.toast(_json.msg); + if (_json.code == 0) { //关闭model $('#deleteSystemUserModel').modal('hide'); vc.emit('systemUser', 'listSystemUser',{}); - vc.toast("删除成功"); + return; } },