修改layui\lay\modules\.table.js源码
function() {
var e = t.totalRowText || "",
type = t.totalRowType || "";
if(type==="int"){
a[n]=parseFloat(a[n]).toFixed(0)
}else{
a[n]=parseFloat(a[n]).toFixed(2)
}
return t.totalRow ? a[n]|| e: e
}
{field: 'num', title: '招待频次',sort:true, sortname: 'num', align: 'center',"totalRow":true,totalRowType:'int'}