listItem.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. [
  2. {
  3. "title" : "姓名",
  4. "headStyles" : "normalThNode",
  5. "contentStyles" : "normalTdNode",
  6. "item" : "function( d ){ return d.empName.split('@')[0] }",
  7. "name" : "empName",
  8. "defaultSort" : "asc",
  9. "width" : "11%"
  10. },
  11. {
  12. "title" : "日期",
  13. "headStyles" : "normalThNode",
  14. "contentStyles" : "normalTdNode",
  15. "item" : "recordDateString",
  16. "name" : "recordDateString",
  17. "width" : "11%"
  18. },
  19. {
  20. "title" : "说明",
  21. "headStyles" : "normalThNode",
  22. "contentStyles" : "normalTdNode",
  23. "item" : "function( data ){ if(data.isHoliday){return '节假日'}else if(data.isWeekend){return '周末'}else if(data.isWorkday){return '调休工作日'}else{return '工作日'} }",
  24. "name" : "description",
  25. "width" : "11%"
  26. },
  27. {
  28. "title" : "上班打卡时间",
  29. "headStyles" : "normalThNode",
  30. "contentStyles" : "normalTdNode",
  31. "item" : "onDutyTime",
  32. "name" : "onDutyTime",
  33. "width" : "11%"
  34. },
  35. {
  36. "title" : "午休开始时间",
  37. "headStyles" : "normalThNode",
  38. "contentStyles" : "normalTdNode",
  39. "item" : "morningOffDutyTime",
  40. "name" : "morningOffDutyTime",
  41. "width" : "11%"
  42. },
  43. {
  44. "title" : "午休结束时间",
  45. "headStyles" : "normalThNode",
  46. "contentStyles" : "normalTdNode",
  47. "item" : "afternoonOnDutyTime",
  48. "name" : "afternoonOnDutyTime",
  49. "width" : "11%"
  50. },
  51. {
  52. "title" : "下班打卡时间",
  53. "headStyles" : "normalThNode",
  54. "contentStyles" : "normalTdNode",
  55. "item" : "offDutyTime",
  56. "name" : "offDutyTime",
  57. "width" : "11%"
  58. },
  59. {
  60. "title": "考勤状态",
  61. "headStyles": "normalThNode",
  62. "contentStyles": "normalTdNode",
  63. "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 if(d.isAbnormalDuty){ status = '异常打卡' }else if(d.isLackOfTime){ status = '工时不足' }else{ status = '正常' }; return status; }",
  64. "name" : "status",
  65. "width" : "11%"
  66. },
  67. {
  68. "title": "申诉状态",
  69. "headStyles": "normalThNode",
  70. "contentStyles": "normalTdNode",
  71. "item": "function( d ){ if(d.appealStatus==1){ return '申诉中' }else if(d.appealStatus==-1){ return '申诉未通过' }else if(d.appealStatus==9){ return '申诉通过' }else{ return '' } }",
  72. "name" : "appealStatus",
  73. "width" : "11%"
  74. }
  75. // {
  76. // "access" : "admin",
  77. // "title" : "操作",
  78. // "headStyles" : "normalThNode",
  79. // "contentStyles" : "normalTdNode",
  80. // "item" : "actions",
  81. // "name" : "actions",
  82. // "width" : "10%",
  83. // "sub" : [{
  84. // "title" : "删除文件",
  85. // "action" : "remove",
  86. // "styles" : "actionDeleteNode",
  87. // "overStyles" : "actionDeleteNode_over",
  88. // "downStyles" : "actionDeleteNode_down"
  89. // }]
  90. // }
  91. ]