zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    购物网站被p.egou.com强制恶意劫持
    css下拉菜单
    StringToInt
    JframeMaxSize
    frameMaxSize
    inputChar
    英语要求
    sciAndSubject
    fileRename
    tensorflowOnWindows
  • 原文地址:https://www.cnblogs.com/denghuachengle/p/4631161.html
Copyright © 2011-2022 走看看