myDeployWork.json 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  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='documentDeployNode'></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": "40%"
  19. },
  20. "content": {
  21. "html": "<td styles='parentWorkTdNode' subStyles='subWorkTdNode'>" +
  22. " <div item='workDetail' title='workDetail'></div>" +
  23. "</td>",
  24. "items": {
  25. "title": {"value" : "function(d){ return d.workOrCenter=='CENTER'?d.centerTitle:d.title }"},
  26. "workDetail": {"value" : "function(d){ return d.workOrCenter=='CENTER'?d.centerTitle:d.title }"},
  27. "centerTitle":{}
  28. }
  29. }
  30. },
  31. {
  32. "name": "relativeDepartment",
  33. "head": {
  34. "html": "<th styles='normalThNode' lable='relativeDepartment'></th>",
  35. "width": "20%"
  36. },
  37. "content": {
  38. "html": "<td styles='normalTdNode' width='20%'>" +
  39. " <div styles='itemBlock'><div styles='itemInLine' lable='dutyDepartent' colon='true'></div><div styles='itemInLine' item='responsibilityUnitName'></div></div>" +
  40. " <div styles='itemBlock'><div styles='itemInLine' lable='doDepartment' colon='true'></div><div styles='itemInLine' item='deployerUnitName'></div></div>" +
  41. " <div styles='itemBlock'><div styles='itemInLine' lable='secondDepartment' colon='true'></div><div styles='itemInLine' item='cooperateUnitNameList'></div></div>" +
  42. "</td>",
  43. "items": {
  44. "responsibilityUnitName": {
  45. },
  46. "deployerUnitName": {
  47. },
  48. "cooperateUnitNameList": {
  49. }
  50. }
  51. }
  52. },
  53. {
  54. "name": "relativePerson",
  55. "head": {
  56. "html": "<th styles='normalThNode' lable='relativePerson'></th>",
  57. "width": "15%"
  58. },
  59. "content": {
  60. "html": "<td styles='normalTdNode' width='15%'>" +
  61. " <div styles='itemBlock'><div styles='itemInLine' lable='dutyPerson' colon='true'></div><div styles='itemInLine' item='responsibilityEmployeeName'></div></div>" +
  62. " <div styles='itemBlock'><div styles='itemInLine' lable='doPerson' colon='true'></div><div styles='itemInLine' item='deployerName'></div></div>" +
  63. " <div styles='itemBlock'><div styles='itemInLine' lable='secondPerson' colon='true'></div><div styles='itemInLine' item='cooperateEmployeeNameList'></div></div>" +
  64. "</td>",
  65. "items": {
  66. "responsibilityEmployeeName": {
  67. //"value":"function(d){return '2222222222222222'}"
  68. },
  69. "deployerName": {
  70. //"value":"function(d){return d.deployerName.split('@')[0]}"
  71. },
  72. "cooperateEmployeeNameList": {
  73. }
  74. }
  75. }
  76. },
  77. {
  78. "name": "timeLimit",
  79. "head": {
  80. "html": "<th styles='normalThNode' lable='timeLimit'></th>",
  81. "width": "15%"
  82. },
  83. "content": {
  84. "html": "<td styles='normalTdCenterNode' item='completeDateLimitStr' width='15%'></td>",
  85. "items": {
  86. "completeDateLimitStr" : {}
  87. }
  88. }
  89. },
  90. {
  91. "name": "action",
  92. "head": {
  93. "html": "<th styles='normalThNode' lable='action'></th>",
  94. "width": "10%"
  95. },
  96. "content": {
  97. "html": "<td styles='normalTdCenterNode' width='10%' actionTd='yes'>" +
  98. // " <span styles='documentActionNode' lable='action_view' item='action_view'></span>" +
  99. // " <span styles='documentActionNode' lable='action_edit' item='action_edit'></span>" +
  100. // " <span styles='documentActionNode' lable='action_delete' item='action_delete'></span>" +
  101. "</td>",
  102. "items": {
  103. "action_view": {
  104. //"access": "admin",
  105. "title": "action_view",
  106. "text": "action_view",
  107. "action": "action_view",
  108. "condition": "function( d ){ return this.editActionReturn(d) }",
  109. "styles": "documentActionNode",
  110. "mouseoverStyles": "documentActionNode_over",
  111. "mousedownStyles": "documentActionNode_down"
  112. },
  113. "action_edit": {
  114. //"access": "admin",
  115. "title": "action_edit",
  116. "text": "action_edit",
  117. "action": "action_edit",
  118. "condition": "function( d ){ return this.editActionReturn(d) }",
  119. "styles": "documentActionNode",
  120. "mouseoverStyles": "documentActionNode_over",
  121. "mousedownStyles": "documentActionNode_down"
  122. },
  123. "action_archive": {
  124. "title": "action_archive",
  125. "text": "action_archive",
  126. "action": "action_archive",
  127. "condition": "function( d ){ return this.archiveActionReturn(d) }",
  128. "styles": "documentActionNode",
  129. "mouseoverStyles": "documentActionNode_over",
  130. "mousedownStyles": "documentActionNode_down"
  131. },
  132. "action_delete": {
  133. "title": "action_delete",
  134. "text": "action_delete",
  135. "action": "action_delete",
  136. "condition": "function( d ){ return this.removeActionReturn(d) }",
  137. "styles": "documentActionNode",
  138. "mouseoverStyles": "documentActionNode_over",
  139. "mousedownStyles": "documentActionNode_down"
  140. }
  141. }
  142. }
  143. }
  144. ]
  145. }