listItem.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. [
  2. {
  3. "title" : MWF.xApplication.Attendance.LP.name,
  4. "headStyles" : "normalThNode",
  5. "contentStyles" : "normalTdNode",
  6. "item" : "function(d){ return (d.empName || '').split('@')[0] }",
  7. "name" : "empName",
  8. "width" : "20%"
  9. },
  10. {
  11. "title" : MWF.xApplication.Attendance.LP.date,
  12. "headStyles" : "normalThNode",
  13. "contentStyles" : "normalTdNode",
  14. "item" : "recordDateString",
  15. "name" : "recordDateString",
  16. "width" : "20%"
  17. },
  18. // {
  19. // "title": "考勤状态",
  20. // "headStyles": "normalThNode",
  21. // "contentStyles": "normalTdNode",
  22. // "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; }",
  23. // "name" : "status",
  24. // "width" : "10%"
  25. // },
  26. {
  27. "title" : MWF.xApplication.Attendance.LP.appealReason,
  28. "headStyles" : "normalThNode",
  29. "contentStyles" : "normalTdNode",
  30. "item" : "appealReason",
  31. "name" : "appealReason",
  32. "width" : "20%"
  33. },
  34. {
  35. "title": MWF.xApplication.Attendance.LP.appealDate,
  36. "headStyles": "normalThNode",
  37. "contentStyles": "normalTdNode",
  38. "item": "function( d ){ var date = d.appealDateString.split(' '); return date[0] }",
  39. "name" : "appealDateString",
  40. "width" : "20%"
  41. },
  42. {
  43. "title": MWF.xApplication.Attendance.LP.auditStatus,
  44. "headStyles": "normalThNode",
  45. "contentStyles": "normalTdNode",
  46. "item": "function( d ){ if(d.status==0){ return MWF.xApplication.Attendance.LP.todo }else if(d.status==-1){ return MWF.xApplication.Attendance.LP.deny }else if(d.status==1){ return MWF.xApplication.Attendance.LP.approve }else{ return '' } }",
  47. "name" : "status",
  48. "width" : "20%"
  49. }
  50. //{
  51. // "title" : "审批意见",
  52. // "headStyles" : "normalThNode",
  53. // "contentStyles" : "normalTdNode",
  54. // "item" : "opinion1",
  55. // "name" : "opinion1",
  56. // "width" : "15%"
  57. //}
  58. // {
  59. // "title" : "操作",
  60. // "headStyles" : "normalThNode",
  61. // "contentStyles" : "normalTdNode",
  62. // "item" : "actions",
  63. // "name" : "actions",
  64. // "width" : "10%",
  65. // "sub" : [{
  66. // "title" : "同意",
  67. // "action" : "agree",
  68. // "styles" : "actionAgreeNode",
  69. // "overStyles" : "actionAgreeNode_over",
  70. // "downStyles" : "actionAgreeNode_down"
  71. // }, {
  72. // "title" : "不同意",
  73. // "action" : "deny",
  74. // "styles" : "actionDenyNode",
  75. // "overStyles" : "actionDenyNode_over",
  76. // "downStyles" : "actionDenyNode_down"
  77. // }]
  78. // }
  79. ]