Skip to content

Commit 6940423

Browse files
committed
优化代码
1 parent cee59fe commit 6940423

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

public/components/frame/searchCommunityData/searchCommunityData.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@
142142
};
143143
},
144144
_initTelMachine: function (_page, _row) {
145+
let _communityId = vc.getCurrentCommunity().communityId;
146+
if(!_communityId || _communityId == '-1'){
147+
return;
148+
}
145149
let param = {
146150
params: {
147151
page: 1,

public/components/staff/deleteSystemUser/deleteSystemUser.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
},
2323
function (json, res) {
2424
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
25-
if (res.status == 200) {
25+
let _json = JSON.parse(json);
26+
vc.toast(_json.msg);
27+
if (_json.code == 0) {
2628
//关闭model
2729
$('#deleteSystemUserModel').modal('hide');
2830
vc.emit('systemUser', 'listSystemUser',{});
29-
vc.toast("删除成功");
31+
3032
return;
3133
}
3234
},

0 commit comments

Comments
 (0)