[ { "title" : "", "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "checkbox", "name" : "checkbox", "condition" : "function(d){ return d.status==0 ? true : false }", "width" : "5%" }, { "title" : "姓名", "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "empName", "name" : "empName", "width" : "15%" }, { "title" : "日期", "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", //"sort" : "desc,asc", "defaultSort" : "desc", "item" : "recordDateString", "name" : "recordDateString", "width" : "15%" }, { "title" : "说明", "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "function( data ){ if(data.isHoliday){return '节假日'}else if(data.isWeekend){return '周末'}else if(data.isWorkday){return '调休工作日'}else{return '工作日'} }", "name" : "description", "width" : "10%" }, { "title" : "上班打卡时间", "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "onDutyTime", "name" : "onDutyTime", "width" : "15%" }, { "title" : "下班打卡时间", "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "offDutyTime", "name" : "offDutyTime", "width" : "15%" }, { "title": "考勤状态", "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( d ){ var status=''; if(d.isGetSelfHolidays){ status = '请假' }else if(d.isAbsent){ status = '缺勤' }else if(d.isLate){ status = '迟到' }else if(d.isLeaveEarlier){ status = '早退' }else{ status = '正常' }; return status; }", "name" : "status", "width" : "10%" } , { "title": "申诉状态", "headStyles": "normalThNode", "contentStyles": "normalTdNode", "item": "function( d ){ if(d.appealStatus==1){ return '申诉中' }else if(d.appealStatus==-1){ return '申诉未通过' }else if(d.appealStatus==9){ return '申诉通过' }else{ return '' } }", "name" : "appealStatus", "width" : "10%" }, { "access" : "admin", "title" : "申诉", "headStyles" : "normalThNode", "contentStyles" : "normalTdNode", "item" : "actions", "name" : "actions", "width" : "10%", "sub" : [{ "access" : "admin", "title" : "删除", "action" : "remove", // "styles" : "actionAppealNode", // "overStyles" : "actionAppealNode_over", // "downStyles" : "actionAppealNode_down", "styles" : "documentActionNode", "overStyles" : "documentActionNode_over", "downStyles" : "documentActionNode_down", "icon" : "delete.png", "overIcon" : "delete_over.png" },{ "title" : "查看申诉信息", "action" : "seeAppeal", "condition" : "function( d ){ if( d.appealStatus ){ return true }else{ return false } }", "styles" : "documentActionDeleteNode", "overStyles" : "documentActionDeleteNode_over", "downStyles" : "documentActionDeleteNode_down" }] } ]