|
@@ -174,6 +174,7 @@ function bindEdit(data,activePage){
|
|
|
}
|
|
|
//启用禁用
|
|
|
function toggleOnOff(url,id,that,status){
|
|
|
+ $.alerModal({type:"loading"});
|
|
|
post(url,{userId:id}).then(res =>{
|
|
|
if(res.data.code == '0'){
|
|
|
// const data = res.data.data
|
|
@@ -183,9 +184,12 @@ function toggleOnOff(url,id,that,status){
|
|
|
})
|
|
|
that.siblings().html(status==1?' 禁用':' 启用')
|
|
|
$.alerModal({"message":"修改成功",type:"tip",time:'1000',isFather: true, fatherWrapper: $("#mainBox", parent.document)});
|
|
|
- }else{}
|
|
|
+ }else{
|
|
|
+ console.log(res)
|
|
|
+ }
|
|
|
+ $(".loading").remove()
|
|
|
}).catch((e) =>{
|
|
|
-
|
|
|
+ $(".loading").remove()
|
|
|
})
|
|
|
}
|
|
|
let leftDeptLis = [],
|