删除岗位对余的弹层

This commit is contained in:
hdm 2022-08-24 23:28:19 +08:00
parent 0d58390441
commit 22a70e38fd

View File

@ -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);
}); });
} }
}); });