layer 弹出框 回传事件获取弹出框的一些属性

$('.opendialog').click(function () {
                var ids = $(this).attr("data-id");
                //alert(ids);
                layer.open({
                    id: "add",
                    title: "环评信息上报",
                    type: 2,
                    area: ['670px', '270px'],
                    btn: ['确定', '取消'],
                    btnclass: ['btn green confirm', 'btn dark btn-outline'],
                    content: '/Admin/PM_BaseInfo/EiaApprovalForm?projectId=' + ids,
                    yes: function (index, layero) {
                        var body = layer.getChildFrame('body', index);
                        var process = body.find("#progress input:radio:checked").val();
                        var number = body.find("#docnumber").val();
                        Approval(ids, process, number);
                        layer.close(index);
                        //window.location.reload();
                        initGrid();
                    }
                });
                //return false;
            });

小计。

原文地址:https://www.cnblogs.com/WZH75171992/p/7865328.html