listItem_dingding.json 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. [
  2. {
  3. "title": "姓名",
  4. "headStyles": "normalThNode",
  5. "contentStyles": "normalTdNode",
  6. "item": "function( d ){ return d.o2User.split('@')[0] }",
  7. "name": "o2User",
  8. "width": "20%"
  9. },
  10. {
  11. "title": "日期",
  12. "headStyles": "normalThNode",
  13. "contentStyles": "normalTdNode",
  14. "item": "function(d){ var date = new Date(d.userCheckTime); return date.getFullYear()+'-'+(date.getMonth()+1)+'-'+date.getDate();}",
  15. "name": "userCheckTime",
  16. "width": "20%"
  17. },
  18. {
  19. "title": "打卡类型",
  20. "headStyles": "normalThNode",
  21. "contentStyles": "normalTdNode",
  22. "item": "function( data ){ if(data.checkType == 'OffDuty'){return '下班打卡';}else{return '上班打卡';} }",
  23. "name": "checkType",
  24. "width": "20%"
  25. },
  26. {
  27. "title": "打卡结果",
  28. "headStyles": "normalThNode",
  29. "contentStyles": "normalTdNode",
  30. "item": "function( data ){ if(data.timeResult == 'Normal'){return '正常';}else if(data.timeResult == 'Early'){return '早退';}else if(data.timeResult == 'Late'){return '迟到';}else if(data.timeResult == 'SeriousLate'){return '严重迟到';}else if(data.timeResult == 'Absenteeism'){return '旷工迟到';}else {return '未打卡';} }",
  31. "name": "timeResult",
  32. "width": "20%"
  33. },
  34. {
  35. "title": "打卡时间",
  36. "headStyles": "normalThNode",
  37. "contentStyles": "normalTdNode",
  38. "item": "function(d){ var date = new Date(d.userCheckTime); return date.getHours()+':'+date.getMinutes()+':'+date.getSeconds();}",
  39. "name": "userCheckTime",
  40. "width": "20%"
  41. }
  42. ]