complexListItem.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. {
  2. "viewSetting": {
  3. "html": "<table width='100%' border='0' cellpadding='5' cellspacing='0' styles='editTable'></table>"
  4. },
  5. "viewHeadSetting":{
  6. "html":"<thead></thead>"
  7. },
  8. "viewBodySetting":{
  9. "html":"<tbody></tbody>"
  10. },
  11. "headSetting": {
  12. "html": "<tr styles='viewHeadNode'></tr>"
  13. },
  14. "documentSetting": {
  15. "html": "<tr styles='documentNode'></tr>",
  16. "mouseoverStyles": "documentNode_over",
  17. "action": "open"
  18. },
  19. "items": [
  20. // {
  21. // "name": "$checkbox",
  22. // "head": {
  23. // "html": "<th styles='normalThNode'></th>",
  24. // "width": "5%"
  25. // },
  26. // "content": {
  27. // "html": "<td styles='normalTdNode'></td>",
  28. // //"condition": "function(d){ return d.status==0 ? true : false }",
  29. // "value": ""
  30. // }
  31. // },
  32. {
  33. "name": "subject",
  34. "head": {
  35. "html": "<th styles='normalThNode' lable='subject'></th>",
  36. "width": "40%"
  37. },
  38. "content": {
  39. "html": "<td styles='normalTdNode'>" +
  40. " <div item='subject' styles='documentSubject'></div>" +
  41. " <div>" +
  42. " <div item='defaultWorkType' styles='itemInLine'></div><div item='defaultWorkLevel' styles='itemInLine'></div>" +
  43. " </div>" +
  44. "</td>",
  45. "items": {
  46. "subject": {},
  47. "defaultWorkType": {},
  48. "defaultWorkLevel": {}
  49. }
  50. }
  51. },
  52. {
  53. "name": "relativeDepartment",
  54. "head": {
  55. "html": "<th styles='normalThNode' lable='relativeDepartment'></th>",
  56. "width": "20%"
  57. },
  58. "content": {
  59. "html": "<td styles='normalTdNode'>" +
  60. " <div styles='itemBlock'><div styles='itemInLine' lable='dutyDepartent' colon='true'></div><div styles='itemInLine' item='dutyDepartent'></div></div>" +
  61. " <div styles='itemBlock'><div styles='itemInLine' lable='doDepartment' colon='true'></div><div styles='itemInLine' item='doDepartment'></div></div>" +
  62. " <div styles='itemBlock'><div styles='itemInLine' lable='secondDepartment' colon='true'></div><div styles='itemInLine' item='secondDepartment'></div></div>" +
  63. "</td>",
  64. "items": {
  65. "dutyDepartent": {
  66. "value": "function(d){ return d.dutyDepartent }"
  67. },
  68. "doDepartment": {},
  69. "secondDepartment": {}
  70. }
  71. }
  72. },
  73. {
  74. "name": "relativePerson",
  75. "head": {
  76. "html": "<th styles='normalThNode' lable='relativePerson'></th>",
  77. "width": "15%"
  78. },
  79. "content": {
  80. "html": "<td styles='normalTdNode'>" +
  81. " <div styles='itemBlock'><div styles='itemInLine' lable='dutyPerson' colon='true'></div><div styles='itemInLine' item='dutyPerson'></div></div>" +
  82. " <div styles='itemBlock'><div styles='itemInLine' lable='doPerson' colon='true'></div><div styles='itemInLine' item='doPerson'></div></div>" +
  83. " <div styles='itemBlock'><div styles='itemInLine' lable='secondPerson' colon='true'></div><div styles='itemInLine' item='secondPerson'></div></div>" +
  84. "</td>",
  85. "items": {
  86. "dutyPerson": {},
  87. "doPerson": {},
  88. "secondPerson": {}
  89. }
  90. }
  91. },
  92. {
  93. "name": "timeLimit",
  94. "head": {
  95. "html": "<th styles='normalThNode' lable='timeLimit'></th>",
  96. "width": "15%"
  97. },
  98. "content": {
  99. "html": "<td styles='normalTdCenterNode' item='timeLimit'></td>",
  100. "items": {
  101. "timeLimit" : {}
  102. }
  103. }
  104. },
  105. {
  106. //"access": "admin",
  107. "head": {
  108. "html": "<th styles='normalThNode' lable='action'></th>",
  109. "width": "10%"
  110. },
  111. "content": {
  112. "html": "<td styles='normalTdCenterNode'>" +
  113. " <span styles='documentActionNode' item='action_comfirm'></span>" +
  114. " <span styles='documentActionNode' item='action_split'></span>" +
  115. "</td>",
  116. "items": {
  117. "action_comfirm": {
  118. //"access": "admin",
  119. "title": "comfirm",
  120. "text": "comfirm",
  121. "action": "action_comfirm",
  122. "styles": "documentActionNode",
  123. "mouseoverStyles": "documentActionNode_over",
  124. "mousedownStyles": "documentActionNode_down"
  125. },
  126. "action_split": {
  127. "title": "split",
  128. "text": "split",
  129. "action": "action_split",
  130. "condition": "function( d ){ return true }",
  131. "styles": "documentActionNode",
  132. "mouseoverStyles": "documentActionNode_over",
  133. "mousedownStyles": "documentActionNode_down"
  134. }
  135. }
  136. }
  137. }
  138. ]
  139. }