Files
PropertyDeployment/resources/Web/MicroCommunityWeb/html/components/staff/deleteStaffCommunity/deleteStaffCommunity.js
2025-12-09 20:22:03 +08:00

51 lines
1.6 KiB
JavaScript

(function(vc,vm){
vc.extends({
data:{
deleteStaffCommunityInfo:{
}
},
_initMethod:function(){
},
_initEvent:function(){
vc.on('deleteStaffCommunity','openDeleteStaffCommunityModal',function(_params){
$that.deleteStaffCommunityInfo = _params;
$('#deleteStaffCommunityModel').modal('show');
});
},
methods:{
deleteStaffCommunity:function(){
vc.http.apiPost(
'/role.deleteStaffCommunity',
JSON.stringify($that.deleteStaffCommunityInfo),
{
emulateJSON:true
},
function(json,res){
//vm.menus = vm.refreshMenuActive(JSON.parse(json),0);
if(res.status == 200){
//关闭model
$('#deleteStaffCommunityModel').modal('hide');
vc.emit('staffCommunity', 'listStaffCommunity',{});
vc.emit('staffDetailCommunitys', 'notify', {});
return ;
}
vc.toast(json);
},
function(errInfo,error){
console.log('请求失败处理');
vc.toast(json);
});
},
closeDeleteStaffCommunityModel:function(){
$('#deleteStaffCommunityModel').modal('hide');
}
}
});
})(window.vc,window.$that);