listItem.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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='subject'></th>",
  18. "width": "40%"
  19. },
  20. "content": {
  21. "html": "<td styles='normalTdNode'>" +
  22. " <div item='title' styles='documentSubject'></div>" +
  23. " <div>" +
  24. " <div item='workType' styles='itemInLine'></div><div item='workLevel' styles='itemInLine'></div>" +
  25. " </div>" +
  26. "</td>",
  27. "items": {
  28. "title": {},
  29. "workType": {},
  30. "workLevel": {}
  31. }
  32. }
  33. },
  34. {
  35. "name": "relativeDepartment",
  36. "head": {
  37. "html": "<th styles='normalThNode' lable='relativeDepartment'></th>",
  38. "width": "20%"
  39. },
  40. "content": {
  41. "html": "<td styles='normalTdNode'>" +
  42. " <div styles='itemBlock'><div styles='itemInLine' lable='responsibilityOrganizationName' colon='true'></div><div styles='itemInLine' item='responsibilityOrganizationName'></div></div>" +
  43. " <div styles='itemBlock'><div styles='itemInLine' lable='deployerOrganizationName' colon='true'></div><div styles='itemInLine' item='deployerOrganizationName'></div></div>" +
  44. " <div styles='itemBlock'><div styles='itemInLine' lable='cooperateOrganizationName' colon='true'></div><div styles='itemInLine' item='cooperateOrganizationName'></div></div>" +
  45. "</td>",
  46. "items": {
  47. "responsibilityOrganizationName": {
  48. },
  49. "deployerOrganizationName": {},
  50. "cooperateOrganizationName": {}
  51. }
  52. }
  53. },
  54. {
  55. "name": "relativePerson",
  56. "head": {
  57. "html": "<th styles='normalThNode' lable='relativePerson'></th>",
  58. "width": "15%"
  59. },
  60. "content": {
  61. "html": "<td styles='normalTdNode'>" +
  62. " <div styles='itemBlock'><div styles='itemInLine' lable='responsibilityEmployeeName' colon='true'></div><div styles='itemInLine' item='responsibilityEmployeeName'></div></div>" +
  63. " <div styles='itemBlock'><div styles='itemInLine' lable='deployerName' colon='true'></div><div styles='itemInLine' item='deployerName'></div></div>" +
  64. " <div styles='itemBlock'><div styles='itemInLine' lable='cooperateEmployeeName' colon='true'></div><div styles='itemInLine' item='cooperateEmployeeName'></div></div>" +
  65. "</td>",
  66. "items": {
  67. "responsibilityEmployeeName": {},
  68. "deployerName": {},
  69. "cooperateEmployeeName": {}
  70. }
  71. }
  72. },
  73. {
  74. "name": "timeLimit",
  75. "head": {
  76. "html": "<th styles='normalThNode' lable='completeDateLimitStr'></th>",
  77. "width": "15%"
  78. },
  79. "content": {
  80. "html": "<td styles='normalTdCenterNode' item='completeDateLimitStr'></td>",
  81. "items": {
  82. "completeDateLimitStr" : {}
  83. }
  84. }
  85. },
  86. {
  87. //"access": "admin",
  88. "head": {
  89. "html": "<th styles='normalThNode' lable='action'></th>",
  90. "width": "10%"
  91. },
  92. "content": {
  93. "html": "<td styles='normalTdCenterNode'>" +
  94. " <span styles='documentActionNode' item='action_edit'></span>" +
  95. " <span styles='documentActionNode' item='remove'></span>" +
  96. "</td>",
  97. "items": {
  98. "action_edit": {
  99. //"access": "admin",
  100. "title": "edit",
  101. "text": "edit",
  102. "action": "action_edit",
  103. "styles": "documentActionNode",
  104. "mouseoverStyles": "documentActionNode_over",
  105. "mousedownStyles": "documentActionNode_down"
  106. },
  107. "remove": {
  108. "title": "delete",
  109. "text": "delete",
  110. "action": "remove",
  111. "condition": "function( d ){ return true }",
  112. "styles": "documentActionNode",
  113. "mouseoverStyles": "documentActionNode_over",
  114. "mousedownStyles": "documentActionNode_down"
  115. }
  116. }
  117. }
  118. }
  119. ]
  120. }