删除岗位对余的弹层
This commit is contained in:
parent
0d58390441
commit
22a70e38fd
@ -99,16 +99,14 @@
|
|||||||
icon: 3,
|
icon: 3,
|
||||||
title: '提示'
|
title: '提示'
|
||||||
}, function (index) {
|
}, function (index) {
|
||||||
layer.confirm('确定要删除吗?', {icon: 3, title:'提示'}, function(index){
|
let callback = function (e) {
|
||||||
let callback = function (e) {
|
layer.msg(e.msg);
|
||||||
layer.msg(e.msg);
|
if (e.code == 0) {
|
||||||
if (e.code == 0) {
|
obj.del();
|
||||||
obj.del();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
tool.delete("/user/position/delete", { id: obj.data.id }, callback);
|
}
|
||||||
layer.close(index);
|
tool.delete("/user/position/delete", { id: obj.data.id }, callback);
|
||||||
});
|
layer.close(index);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user