mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-06-11 14:17:24 +08:00
优化代码
This commit is contained in:
parent
49aaf8e788
commit
fd0945dc63
@ -12,17 +12,17 @@
|
||||
_initEvent: function() {
|
||||
vc.on('deleteAppUserBindingOwner', 'openDeleteAppUserBindingOwnerModal', function(_params) {
|
||||
|
||||
vc.component.deleteAppUserBindingOwnerInfo = _params;
|
||||
$that.deleteAppUserBindingOwnerInfo = _params;
|
||||
$('#deleteAppUserBindingOwnerModel').modal('show');
|
||||
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
deleteAppUserBindingOwner: function() {
|
||||
//vc.component.deleteAppUserBindingOwnerInfo.communityId=vc.getCurrentCommunity().communityId;
|
||||
//$that.deleteAppUserBindingOwnerInfo.communityId=vc.getCurrentCommunity().communityId;
|
||||
vc.http.apiPost(
|
||||
'/owner.deleteAppUserBindingOwner',
|
||||
JSON.stringify(vc.component.deleteAppUserBindingOwnerInfo), {
|
||||
JSON.stringify($that.deleteAppUserBindingOwnerInfo), {
|
||||
emulateJSON: true
|
||||
},
|
||||
function(json, res) {
|
||||
@ -32,8 +32,8 @@
|
||||
if (_json.code == 0) {
|
||||
//关闭model
|
||||
$('#deleteAppUserBindingOwnerModel').modal('hide');
|
||||
//vc.component.clearAddAppUserBindingOwnerInfo();
|
||||
vc.emit('auditAppUserBindingOwnerManage', 'listAuditAppUserBindingOwner', {});
|
||||
//$that.clearAddAppUserBindingOwnerInfo();
|
||||
vc.emit('auditAuthOwner', 'listAuditAuthOwner', {});
|
||||
return;
|
||||
}
|
||||
vc.toast(_json.msg);
|
||||
@ -50,4 +50,4 @@
|
||||
}
|
||||
});
|
||||
|
||||
})(window.vc, window.vc.component);
|
||||
})(window.vc, window.$that);
|
||||
Loading…
Reference in New Issue
Block a user