$(function(){
tabFlagMap["suitAttr"] = false;
tabFuncMap.suitAttr = function(){
var index = 0;
$.each(equipsettable,function(key,map){
var tr = $("
");
$("#suitAttrTable tbody").append(tr);
var suitAttrName = $(""+map.NAME+" | ");
var attrTd = $(" | ").append(""+findSuitAttr(map)+"
");
var includeEquipArr = map["组件"].split(";");
var equipArr = $(" | ");
$.each(includeEquipArr,function(index,equipId){
equipArr.append($("").append(findEquipTips(equipId)));
});
tr.append($(""+map.INDEX+" | "));
tr.append(suitAttrName);
tr.append(attrTd);
tr.append(equipArr);
suitAttrName.append(""+map["PY"]+"");
index++;
});
/*equipTable*/
$('#suitAttrTable').dataTable( {
"pagingType": "full_numbers",
"language": {
"lengthMenu": "每页 _MENU_ 条记录",
"zeroRecords": "没有找到套装属性,一定是你没充值VIP!",
"info": "第 _PAGE_ 页 ( 总共 _PAGES_ 页 )",
"infoEmpty": "没有套装属性",
"infoFiltered": "(从 _MAX_ 条套装属性过滤)",
"search": "搜索(可用套装名称首字母):",
"paginate": {
"first": "首页(W)",
"last": "末页(S)",
"next": "下一页(D)",
"previous": "上一页(A)"
},
},
// 默认按照索引排序,且隐藏索引列
"order": [[ 0, "asc" ]],
"columnDefs": [
{
"targets": [ 0 ],
"visible": false,
"searchable": false
},
]
});
$('#suitAttrTable th').css("text-align","center");
}
});