效果:
操作:加上方法:
rowStyler: function (index, row) {
if (row.Online != "True") {
// return "background-color:#FFFF99;";//背景颜色
return "color:red;";//字体颜色
}
}
columns: [[
{ title: 'T2pkid', field: 'T2pkid', halign: 'center', hidden: true },
{ title: '设备编码', field: 'LedCode', halign: 'center', width: 20, hidden: true },
{ title: '设备编号', field: 'EquipShowNo', halign: 'center', width: 20 },
{ title: '部门编码', field: 'DepartCode', halign: 'center',