listItem.json 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. [
  2. {
  3. "title" : "",
  4. "headStyles" : "normalThNode",
  5. "contentStyles" : "normalTdNode",
  6. "item" : "checkbox",
  7. "name" : "checkbox",
  8. "condition" : "function(d){ return (d.APPEALABLE && d.APPEAL_AUDIFLOWTYPE=='BUILTIN' && d.status==0 && d.appealAuditInfo && d.appealAuditInfo.auditFlowType=='BUILTIN') ? true : false }",
  9. "width" : "5%"
  10. },
  11. {
  12. "title" : MWF.xApplication.Attendance.LP.employeeName,
  13. "headStyles" : "normalThNode",
  14. "contentStyles" : "normalTdNode",
  15. "item" : "function(d){ return (d.empName || '').split('@')[0] }",
  16. "name" : "empName",
  17. "width" : "9%"
  18. },
  19. {
  20. "title" : MWF.xApplication.Attendance.LP.department,
  21. "headStyles" : "normalThNode",
  22. "contentStyles" : "normalTdNode",
  23. "item" : "function(d){ return (d.unitName || '').split('@')[0] }",
  24. "name" : "unitName",
  25. "width" : "9%"
  26. },
  27. {
  28. "title" : MWF.xApplication.Attendance.LP.recordDate,
  29. "headStyles" : "normalThNode",
  30. "contentStyles" : "normalTdNode",
  31. "item" : "recordDateString",
  32. "name" : "recordDateString",
  33. "width" : "9%"
  34. },
  35. // {
  36. // "title": "考勤状态",
  37. // "headStyles": "normalThNode",
  38. // "contentStyles": "normalTdNode",
  39. // "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; }",
  40. // "name" : "status",
  41. // "width" : "10%"
  42. // },
  43. {
  44. "title" : MWF.xApplication.Attendance.LP.appealReason,
  45. "headStyles" : "normalThNode",
  46. "contentStyles" : "normalTdNode",
  47. "item" : "appealReason",
  48. "name" : "appealReason",
  49. "width" : "9%"
  50. },
  51. {
  52. "title" : MWF.xApplication.Attendance.LP.leaveType,
  53. "headStyles" : "normalThNode",
  54. "contentStyles" : "normalTdNode",
  55. "item" : "selfHolidayType",
  56. "name" : "selfHolidayType",
  57. "width" : "9%"
  58. },{
  59. "title" : MWF.xApplication.Attendance.LP.start,
  60. "headStyles" : "normalThNode",
  61. "contentStyles" : "normalTdNode",
  62. "item" : "startTime",
  63. "name" : "startTime",
  64. "width" : "9%"
  65. },{
  66. "title" : MWF.xApplication.Attendance.LP.end,
  67. "headStyles" : "normalThNode",
  68. "contentStyles" : "normalTdNode",
  69. "item" : "endTime",
  70. "name" : "endTime",
  71. "width" : "9%"
  72. },{
  73. "title" : MWF.xApplication.Attendance.LP.address,
  74. "headStyles" : "normalThNode",
  75. "contentStyles" : "normalTdNode",
  76. "item" : "address",
  77. "name" : "address",
  78. "width" : "9%"
  79. },{
  80. "title" : MWF.xApplication.Attendance.LP.appealDescriptoin,
  81. "headStyles" : "normalThNode",
  82. "contentStyles" : "normalTdNode",
  83. "item" : "appealDescription",
  84. "name" : "appealDescription",
  85. "width" : "9%"
  86. },
  87. {
  88. "title": MWF.xApplication.Attendance.LP.auditStatus,
  89. "headStyles": "normalThNode",
  90. "contentStyles": "normalTdNode",
  91. "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 '' } }",
  92. "name" : "status",
  93. "width" : "7%"
  94. },
  95. {
  96. "title" :MWF.xApplication.Attendance.LP.action,
  97. "headStyles" : "normalThNode",
  98. "contentStyles" : "normalTdNode",
  99. "item" : "actions",
  100. "name" : "actions",
  101. "width" : "8%",
  102. "sub" : [{
  103. "title" : MWF.xApplication.Attendance.LP.agree,
  104. "action" : "agree",
  105. "fonticon": "o2icon-icon_ok",
  106. // "icon": "agree.png",
  107. "condition" : "function(d){ return d.APPEALABLE && d.appealAuditInfo && d.appealAuditInfo.auditFlowType=='BUILTIN'; }",
  108. "styles" : "documentActionNode",
  109. "overStyles" : "documentActionNode_over",
  110. "downStyles" : "documentActionNode_down"
  111. }, {
  112. "title" : MWF.xApplication.Attendance.LP.disagree,
  113. "action" : "deny",
  114. "fonticon": "o2icon-icon_jinzhi",
  115. // "icon": "deny.png",
  116. "condition" : "function(d){ return d.APPEALABLE && d.appealAuditInfo && d.appealAuditInfo.auditFlowType=='BUILTIN'; }",
  117. "styles" : "documentActionNode",
  118. "overStyles" : "documentActionNode_over",
  119. "downStyles" : "documentActionNode_down"
  120. }]
  121. }
  122. ]