给供应商的状态增加颜色

This commit is contained in:
季圣华
2020-06-23 22:51:34 +08:00
parent eb942485fc
commit 57f1c5bff4

View File

@@ -78,7 +78,7 @@
{ title: '期末应付',field: 'allneedpay',width:70,align:"center"},
{ title: '税率(%)', field: 'taxrate',width:60,align:"center"},
{ title: '状态',field: 'enabled',width:70,align:"center",formatter:function(value){
return value? "启用":"禁用";
return value? "<span style='color:green'>启用</span>":"<span style='color:red'>禁用</span>";
}}
]],
toolbar:[