listItem.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. [
  2. {
  3. "title" : "",
  4. "headStyles" : "normalThNode",
  5. "contentStyles" : "normalTdNode",
  6. "item" : "checkbox",
  7. "name" : "checkbox",
  8. "condition" : "function(d){ return d.status==0 ? true : false }",
  9. "width" : "5%"
  10. },
  11. {
  12. "title" : "姓名",
  13. "headStyles" : "normalThNode",
  14. "contentStyles" : "normalTdNode",
  15. "item" : "empName",
  16. "name" : "empName",
  17. "width" : "15%"
  18. },
  19. {
  20. "title" : "日期",
  21. "headStyles" : "normalThNode",
  22. "contentStyles" : "normalTdNode",
  23. //"sort" : "desc,asc",
  24. "defaultSort" : "desc",
  25. "item" : "recordDateString",
  26. "name" : "recordDateString",
  27. "width" : "15%"
  28. },
  29. {
  30. "title" : "说明",
  31. "headStyles" : "normalThNode",
  32. "contentStyles" : "normalTdNode",
  33. "item" : "function( data ){ if(data.isHoliday){return '节假日'}else if(data.isWeekend){return '周末'}else if(data.isWorkday){return '调休工作日'}else{return '工作日'} }",
  34. "name" : "description",
  35. "width" : "10%"
  36. },
  37. {
  38. "title" : "上班打卡时间",
  39. "headStyles" : "normalThNode",
  40. "contentStyles" : "normalTdNode",
  41. "item" : "onDutyTime",
  42. "name" : "onDutyTime",
  43. "width" : "15%"
  44. },
  45. {
  46. "title" : "下班打卡时间",
  47. "headStyles" : "normalThNode",
  48. "contentStyles" : "normalTdNode",
  49. "item" : "offDutyTime",
  50. "name" : "offDutyTime",
  51. "width" : "15%"
  52. },
  53. {
  54. "title": "考勤状态",
  55. "headStyles": "normalThNode",
  56. "contentStyles": "normalTdNode",
  57. "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; }",
  58. "name" : "status",
  59. "width" : "10%"
  60. } ,
  61. {
  62. "title": "申诉状态",
  63. "headStyles": "normalThNode",
  64. "contentStyles": "normalTdNode",
  65. "item": "function( d ){ if(d.appealStatus==1){ return '申诉中' }else if(d.appealStatus==-1){ return '申诉未通过' }else if(d.appealStatus==9){ return '申诉通过' }else{ return '' } }",
  66. "name" : "appealStatus",
  67. "width" : "10%"
  68. },
  69. {
  70. "access" : "admin",
  71. "title" : "申诉",
  72. "headStyles" : "normalThNode",
  73. "contentStyles" : "normalTdNode",
  74. "item" : "actions",
  75. "name" : "actions",
  76. "width" : "10%",
  77. "sub" : [{
  78. "access" : "admin",
  79. "title" : "删除",
  80. "action" : "remove",
  81. // "styles" : "actionAppealNode",
  82. // "overStyles" : "actionAppealNode_over",
  83. // "downStyles" : "actionAppealNode_down",
  84. "styles" : "documentActionNode",
  85. "overStyles" : "documentActionNode_over",
  86. "downStyles" : "documentActionNode_down",
  87. "icon" : "delete.png",
  88. "overIcon" : "delete_over.png"
  89. },{
  90. "title" : "查看申诉信息",
  91. "action" : "seeAppeal",
  92. "condition" : "function( d ){ if( d.appealStatus ){ return true }else{ return false } }",
  93. "styles" : "documentActionDeleteNode",
  94. "overStyles" : "documentActionDeleteNode_over",
  95. "downStyles" : "documentActionDeleteNode_down"
  96. }]
  97. }
  98. ]