{ field: "statusName",name: '<fmt:message key="label.status"/>',width: '60px',editable:false,noresize:false,formatter:function(value){ if('已分配'== value){ this.customStyles.push("background-color: #27db28;"); } else if('执行中'== value){ this.customStyles.push("background-color: green;"); } else if('已拒绝'== value){ this.customStyles.push("background-color: red;"); } else if('已完成'== value){ this.customStyles.push("background-color: blue;"); } else if('已验证'== value){ this.customStyles.push("background-color: #D3D6D7;"); } else if('草稿'== value){ this.customStyles.push("background-color: yellow;"); } return value; } }