给改变字体表格的列添加formatter;
columns: [{
field: 'payStatus',
title: '还款状态',
formatter: function(value,row,index) {
var a = "";
if(value == "未还清") {
var a = '<span style="color:#c12e2a;"><i class="fa fa-times-circle-o" aria-hidden="true"></i>'+value+'</span>';
}else if(value == "已还清"){
var a = '<span style="color:#3e8f3e"><i class="fa fa-check-circle-o" aria-hidden="true"></i>'+value+'</span>';
}
return a;
},
align:'center'
}]
效果展示: