/** * 初始化人才认定申报详情对话框 */ var TalentAllowanceInfoDlg = { talentAllowanceData : {} }; /** * 关闭此对话框 */ TalentAllowanceInfoDlg.close = function() { parent.layer.close(window.parent.TalentAllowanceInfo.layerIndex); } /** * 初始化工作单位及核查项目情况表 */ TalentAllowanceInfoDlg.initContract = function(){ $("#projectTable").bootstrapTable({ url: Feng.ctxPath + "/talentAllowanceInfo/findAllowanceContractDetail", method: 'POST', contentType: "application/x-www-form-urlencoded; charset=UTF-8", search: false, // 是否显示表格搜索,此搜索是客户端搜索,不会进服务端 showRefresh: false, // 是否显示刷新按钮 clickToSelect: true, // 是否启用点击选中行 singleSelect: true, // 设置True 将禁止多选 striped: true, // 是否显示行间隔色 escape: true, pagination: false, // 设置为 true 会在表格底部显示分页条 paginationHAlign: "left", paginationDetailHAlign: "right", sidePagination: "server", // 设置在哪里进行分页,可选值为 'client' 或者 'server' showColumns: false, detailView: true,//父子表 queryParams: function (params) { return $.extend({"mainId":$("#id").val()},params) }, columns: TalentAllowanceInfoDlg.initContractColumns(), onPostBody: function () { $("td.uitd_showTip").bind("mouseover", function () { var htm = $(this).html(); $(this).webuiPopover({title: '详情', content: htm, trigger: 'hover'}).webuiPopover('show'); }); }, onLoadSuccess: function (data) { $("#projectTable").bootstrapTable('expandAllRows'); }, onExpandRow: function (index, row, $detail) { var enterpriseId = row.enterpriseId; var cur_table = $detail.html('