listItemBase.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. {
  2. "viewSetting": {
  3. "html": "<table width='100%' border='0' cellpadding='5' cellspacing='0' styles='editTable'></table>"
  4. },
  5. "headSetting": {
  6. "html": "<tr styles='viewHeadNode'></tr>"
  7. },
  8. "documentSetting": {
  9. "html": "<tr styles='documentNode'></tr>",
  10. "mouseoverStyles": "documentNode_over",
  11. "action": "open"
  12. },
  13. "items": [
  14. {
  15. "name": "subject",
  16. "head": {
  17. "html": "<th styles='normalThNode' lable='shortWorkDetail'></th>",
  18. "width": "30%"
  19. },
  20. "content": {
  21. "html": "<td styles='normalTdNode'>" +
  22. " <div item='title' styles='documentSubject'></div>" +
  23. "</td>",
  24. "items": {
  25. "title": {},
  26. "shortWorkDetail":{},
  27. "workType": {},
  28. "workLevel": {}
  29. }
  30. }
  31. },
  32. {
  33. "name": "progressAction",
  34. "head": {
  35. "html": "<th styles='normalThNode' lable='shortProgressAction'></th>",
  36. "width": "30%"
  37. },
  38. "content": {
  39. "html": "<td styles='normalTdNode'>" +
  40. " <div item='shortProgressAction' styles='documentSubject'></div>" +
  41. "</td>",
  42. "items": {
  43. "title": {},
  44. "shortProgressAction":{},
  45. "shortWorkDetail":{},
  46. "workType": {},
  47. "workLevel": {}
  48. }
  49. }
  50. },
  51. {
  52. "name": "relativeDepartment",
  53. "head": {
  54. "html": "<th styles='normalThNode' lable='relativeDepartment'></th>",
  55. "width": "15%"
  56. },
  57. "content": {
  58. "html": "<td styles='normalTdNode'>" +
  59. " <div styles='itemBlock'><div styles='itemInLine' lable='responsibilityOrganizationName' colon='true'></div><div styles='itemInLine' item='responsibilityOrganizationName'></div></div>" +
  60. " <div styles='itemBlock'><div styles='itemInLine' lable='deployerOrganizationName' colon='true'></div><div styles='itemInLine' item='deployerOrganizationName'></div></div>" +
  61. " <div styles='itemBlock'><div styles='itemInLine' lable='cooperateOrganizationName' colon='true'></div><div styles='itemInLine' item='cooperateOrganizationName'></div></div>" +
  62. "</td>",
  63. "items": {
  64. "responsibilityOrganizationName": {
  65. },
  66. "deployerOrganizationName": {},
  67. "cooperateOrganizationName": {}
  68. }
  69. }
  70. },
  71. {
  72. "name": "relativePerson",
  73. "head": {
  74. "html": "<th styles='normalThNode' lable='relativePerson'></th>",
  75. "width": "10%"
  76. },
  77. "content": {
  78. "html": "<td styles='normalTdNode'>" +
  79. " <div styles='itemBlock'><div styles='itemInLine' lable='responsibilityEmployeeName' colon='true'></div><div styles='itemInLine' item='responsibilityEmployeeName'></div></div>" +
  80. " <div styles='itemBlock'><div styles='itemInLine' lable='deployerName' colon='true'></div><div styles='itemInLine' item='deployerName'></div></div>" +
  81. " <div styles='itemBlock'><div styles='itemInLine' lable='cooperateEmployeeName' colon='true'></div><div styles='itemInLine' item='cooperateEmployeeName'></div></div>" +
  82. "</td>",
  83. "items": {
  84. "responsibilityEmployeeName": {},
  85. "deployerName": {},
  86. "cooperateEmployeeName": {}
  87. }
  88. }
  89. },
  90. {
  91. "name": "timeLimit",
  92. "head": {
  93. "html": "<th styles='normalThNode' lable='completeDateLimitStr'></th>",
  94. "width": "10%"
  95. },
  96. "content": {
  97. "html": "<td styles='normalTdCenterNode' item='completeDateLimitStr'></td>",
  98. "items": {
  99. "completeDateLimitStr" : {}
  100. }
  101. }
  102. },
  103. {
  104. //"access": "admin",
  105. "head": {
  106. "html": "<th styles='normalThNode' lable='action'></th>",
  107. "width": "15%"
  108. },
  109. "content": {
  110. "html": "<td styles='normalTdCenterNode'>" +
  111. // " <span styles='documentActionNode' item='action_edit'></span>" +
  112. // " <span styles='documentActionNode' item='action_split'></span>" +
  113. // " <span styles='documentActionNode' item='remove'></span>" +
  114. " <span styles='documentActionNode' item='action_open'></span>" +
  115. "</td>",
  116. "items": {
  117. "action_open": {
  118. // "access": "isEdit",
  119. "title": "open",
  120. "text": "open",
  121. "action": "action_open",
  122. "styles": "documentActionNode",
  123. "mouseoverStyles": "documentActionNode_over",
  124. "mousedownStyles": "documentActionNode_down"
  125. },
  126. "action_edit": {
  127. // "access": "isEdit",
  128. "title": "edit",
  129. "text": "edit",
  130. "action": "action_edit",
  131. "styles": "documentActionNode",
  132. "mouseoverStyles": "documentActionNode_over",
  133. "mousedownStyles": "documentActionNode_down"
  134. },
  135. "action_split": {
  136. //"access": "admin",
  137. "title": "split",
  138. "text": "split",
  139. "action": "action_split",
  140. "styles": "documentActionNode",
  141. "mouseoverStyles": "documentActionNode_over",
  142. "mousedownStyles": "documentActionNode_down"
  143. },
  144. "remove": {
  145. "title": "remove",
  146. "text": "remove",
  147. "action": "remove",
  148. // "condition": "function( d ){ return this.test(d) }",
  149. "condition": "function( d ){ return true; }",
  150. "styles": "documentActionNode",
  151. "mouseoverStyles": "documentActionNode_over",
  152. "mousedownStyles": "documentActionNode_down"
  153. }
  154. }
  155. }
  156. }
  157. ]
  158. }