function mergeCells() {
var tbodyTlth = $("#datatable_ajax1 tbody").find("tr").length;
for (var i = 0; i < tbodyTlth; i++) {
for (var j = (i + 1); j <= tbodyTlth; j++) {
if ($("#datatable_ajax1 tbody tr:eq(" + i + ") td:eq(0)").text() != $("#datatable_ajax1 tbody tr:eq(" + j + ") td:eq(0)").text()|| $("#datatable_ajax1 tbody tr:eq(" + j + ") td:eq(0)").text() == "") {// 说明当前的安检中心结束
$("#datatable_ajax1 tbody tr:eq(" + i + ")").find("td:eq(0)").attr("rowspan", (j - i)).css({"text-align":"center","vertical-align":"middle"});
if (j - i > 1) {
for (var k = (i + 1); k < j; k++) {
$("#datatable_ajax1 tbody tr:eq(" + k + ")").find("td:eq(0)").remove();
}
i = (j - 1);
}
break;
} else {
continue;
}
}
}
}