This commit is contained in:
caoqianming 2020-09-10 22:54:06 +08:00
parent 81783317e7
commit e54c109907
1 changed files with 9 additions and 5 deletions

View File

@ -26,11 +26,15 @@
{ field: 'taskadd', title: '任务开始时间', width: 80 },
{ field: 'taskexpire', title: '任务过期时间', width: 80 },
{ field: 'usable', title: '任务状态', width: 80, formatter: function (value, row, index) {
switch (value) {
case 0: return '过期'; break;
case 1: return '可用'; break;
case 2: return '作废'; break;
}
if(value==1){
return '可用'
}else if (value==0&&row.taskdo==null){
return '过期'
}else if(value==0&&row.taskdo!=null){
return ''
}else if(value==2){
return '作废'
}
}, styler: function (value, row, index) {
switch (value) {
case 1: return 'color:white;background-color:green'; break;