以订单状态为例,假入firmatter方法,在方法里判断
{header:'${text('订单状态')}', name:'orderStatus', index:'a.order_status', width:150, align:"left",formatter: function(val, obj, row, act){
if(val ==0){
return"未支付";
} else if(val ==1){
return "已支付";
}
}},