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