listItem.json 4.4 KB

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