function record_search(searchContent, pageSize, pageNo, status, orderBy, desc, createTimeStart, createTimeEnd) { $.ajax({ type: "post", url: getRootPath() + "/retail/ajaxGetRetailPage", data: {searchContent, pageNo, pageSize, status, orderBy, desc, createTimeStart, createTimeEnd}, dataType: "json", beforeSend: function () { $("#searchContent-tbody").html('' + ' ' + ''); }, success: function (data) { if (data.result && data.result == "authFalse") { window.location.href = getRootPath() + "/" + data.url; } else { //list数据处理 data = data.pageInfo; //页码处理 page_handle(data, $("#sms-current-page"), $("#page-btns").find(".current-page"), $("#page-btns").find(".total-page"), $("#page-btns").find(".total-items"), $("#page-btns").find(".pageNum-area")); //数据处理 var list = data.list; var html = ""; if (list != null && list.length > 0) { for (var i = 0; i < list.length; i++) { let retail = list[i]; html += ' ' + '' + '' + ' ' + ' ' + retail.id + ' ' + ' ' + formatStatus(retail.status) + ' '+ ' ' + retail.customerName + ' ' + ' ' + retail.mobile + ' ' + ' ' + retail.payment + ' ' + ' ' + getFormatDateByLong(retail.createTime) + ' '+ ''; } // } else { // html += '当前无有效数据'; // } $("#searchContent-tbody").html(html); } } });}