layer.confirm('确认要删除吗?',function(index){
                $.ajax({
                    type: 'post',
                    url: '/plan/deletePlan?user=' + userInfo.employeeId,
                    dataType: 'json',
                    data:{
                        ids:ckValues
                    },
                    success: function(data){
                        location.replace(location.href);
                        layer.msg('已删除!',{icon:1,time:1000});
                    },
                    error:function(data) {
                        if (data.responseText) {
                            var error = $.parseJSON(data.responseText);
                            alert(error.message);
                        }
                    }
                });
            });
function deleteById(obj,id) {
       
        layer.confirm('确认要删除吗?',function(index){
            $.ajax({
                type: 'POST',
                url: '../../inspectionProblem/delete',
                data: {
                    id:id
                },
                success: function(res){
                    if(res.code == 0){
                        $(obj).parents("tr").remove();
                        layer.msg('已删除!',{icon:1,time:1000});
                    } else {
                        layer.alert(res.message,{icon:2})
                    }
                },
                error:function(XMLHttpRequest, textStatus, errorThrown) {
                    layer.alert(textStatus,{icon:2});
                },
            });
        });
    }