$(function () { autoFlashHeight(); // 全选报表 $('#select_all_rpt_checkbox').click(function () { $(this).prop('checked', false); $('#rpt_table input[name="rptId[]"]').each(function () { if (parseInt($(this).val()) !== -1) { $(this).prop('checked', true); } }); }); $('#add_rpt_btn').click(function () { const checkArray = []; $('#rpt_table input[name="rptId[]"]:checked').each(function() { checkArray.push({ id: parseInt($(this).val()), name: $(this).attr('data-name'), }); //向数组中添加元素 }); postData('/payment/' + tenderId + '/process/save', { type: 'add-rpt', rpt_list: checkArray }, function (result) { const html = []; for (const data of result) { html.push(`
${item.name}${item.mobile || ''}
${item.role || ''}${item.name}${item.mobile || ''}
${item.role || ''}' + item.name + '' + item.mobile + '
\n' + ' ' + item.role + '\n' + '' + item.name + '' + item.mobile + '
\n' + ' ' + item.role + '\n' + '' + item.name + '' + item.mobile + '
\n' + ' ' + item.role + '\n' + '