※审批状态颜色显示
1 renderer: function (value, metadata) { 2 switch (metadata.record.data.FlowState) { 3 case 1: return "<font color='blue'>" + value + "</font>"; break; //审批中 4 case 2: return "<font color='green'>" + value + "</font>"; break; //审批通过 5 case 0: return "<font color='black'>" + value + "</font>"; break; //未审批 6 case 4: return "<font style='font-weight:bold;color:black'>" + value + "</font>"; break; //已确认 7 case 3: return "<font color='red'>" + value + "</font>"; break; //驳回 8 default: 9 return value; 10 } 11 }