listItem.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [
  2. {
  3. "title" : "姓名",
  4. "headStyles" : "normalThNode",
  5. "contentStyles" : "normalTdNode",
  6. "item" : "empName",
  7. "name" : "empName",
  8. "width" : "20%"
  9. },
  10. {
  11. "title" : "日期",
  12. "headStyles" : "normalThNode",
  13. "contentStyles" : "normalTdNode",
  14. "defaultSort" : "desc",
  15. "sort" : "asc,desc",
  16. "item" : "recordDateString",
  17. "name" : "recordDateString",
  18. "width" : "20%"
  19. },
  20. {
  21. "title" : "说明",
  22. "headStyles" : "normalThNode",
  23. "contentStyles" : "normalTdNode",
  24. "item" : "function( data ){ if(data.isHoliday){return '节假日'}else if(data.isWeekend){return '周末'}else if(data.isWorkday){return '调休工作日'}else{return '工作日'} }",
  25. "name" : "description",
  26. "width" : "20%"
  27. },
  28. {
  29. "title" : "上班打卡时间",
  30. "headStyles" : "normalThNode",
  31. "contentStyles" : "normalTdNode",
  32. "sort" : "asc,desc",
  33. "item" : "onDutyTime",
  34. "name" : "onDutyTime",
  35. "width" : "15%"
  36. },
  37. {
  38. "title" : "下班打卡时间",
  39. "headStyles" : "normalThNode",
  40. "contentStyles" : "normalTdNode",
  41. "sort" : "asc,desc",
  42. "item" : "offDutyTime",
  43. "name" : "offDutyTime",
  44. "width" : "15%"
  45. },
  46. {
  47. "title": "考勤状态",
  48. "headStyles": "normalThNode",
  49. "contentStyles": "normalTdNode",
  50. "item": "function( d ){ var status=''; if(d.isGetSelfHolidays){ status = '请假或外出报备' }else if(d.isLate){ status = '迟到' }else if(d.isLeaveEarlier){ status = '早退' }else if(d.isAbsent){ status = '缺勤' }else{ status = '正常' }; return status; }",
  51. "name" : "status",
  52. "width" : "15%"
  53. } //,
  54. // {
  55. // "access" : "admin",
  56. // "title" : "操作",
  57. // "headStyles" : "normalThNode",
  58. // "contentStyles" : "normalTdNode",
  59. // "item" : "actions",
  60. // "name" : "actions",
  61. // "width" : "10%",
  62. // "sub" : [{
  63. // "title" : "删除文件",
  64. // "action" : "remove",
  65. // "styles" : "actionDeleteNode",
  66. // "overStyles" : "actionDeleteNode_over",
  67. // "downStyles" : "actionDeleteNode_down"
  68. // }]
  69. // }
  70. ]