Extjs前端细节处理

※审批状态颜色显示


 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 }
View Code

 

posted @ 2015-07-08 19:32  大漠孤烟~  阅读(155)  评论(0编辑  收藏  举报