myDeployWork.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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='responsibilityOrganizationName'></div></div>" +
  40. " <div styles='itemBlock'><div styles='itemInLine' lable='doDepartment' colon='true'></div><div styles='itemInLine' item='deployerOrganizationName'></div></div>" +
  41. " <div styles='itemBlock'><div styles='itemInLine' lable='secondDepartment' colon='true'></div><div styles='itemInLine' item='cooperateOrganizationName'></div></div>" +
  42. "</td>",
  43. "items": {
  44. "responsibilityOrganizationName": {
  45. },
  46. "deployerOrganizationName": {},
  47. "cooperateOrganizationName": {}
  48. }
  49. }
  50. },
  51. {
  52. "name": "relativePerson",
  53. "head": {
  54. "html": "<th styles='normalThNode' lable='relativePerson'></th>",
  55. "width": "15%"
  56. },
  57. "content": {
  58. "html": "<td styles='normalTdNode' width='15%'>" +
  59. " <div styles='itemBlock'><div styles='itemInLine' lable='dutyPerson' colon='true'></div><div styles='itemInLine' item='responsibilityEmployeeName'></div></div>" +
  60. " <div styles='itemBlock'><div styles='itemInLine' lable='doPerson' colon='true'></div><div styles='itemInLine' item='deployerName'></div></div>" +
  61. " <div styles='itemBlock'><div styles='itemInLine' lable='secondPerson' colon='true'></div><div styles='itemInLine' item='cooperateEmployeeName'></div></div>" +
  62. "</td>",
  63. "items": {
  64. "responsibilityEmployeeName": {},
  65. "deployerName": {},
  66. "cooperateEmployeeName": {}
  67. }
  68. }
  69. },
  70. {
  71. "name": "timeLimit",
  72. "head": {
  73. "html": "<th styles='normalThNode' lable='timeLimit'></th>",
  74. "width": "15%"
  75. },
  76. "content": {
  77. "html": "<td styles='normalTdCenterNode' item='completeDateLimitStr' width='15%'></td>",
  78. "items": {
  79. "completeDateLimitStr" : {}
  80. }
  81. }
  82. },
  83. {
  84. "name": "action",
  85. "head": {
  86. "html": "<th styles='normalThNode' lable='action'></th>",
  87. "width": "10%"
  88. },
  89. "content": {
  90. "html": "<td styles='normalTdCenterNode' width='10%' actionTd='yes'>" +
  91. // " <span styles='documentActionNode' lable='action_view' item='action_view'></span>" +
  92. // " <span styles='documentActionNode' lable='action_edit' item='action_edit'></span>" +
  93. // " <span styles='documentActionNode' lable='action_delete' item='action_delete'></span>" +
  94. "</td>",
  95. "items": {
  96. "action_view": {
  97. //"access": "admin",
  98. "title": "action_view",
  99. "text": "action_view",
  100. "action": "action_view",
  101. "condition": "function( d ){ return this.editActionReturn(d) }",
  102. "styles": "documentActionNode",
  103. "mouseoverStyles": "documentActionNode_over",
  104. "mousedownStyles": "documentActionNode_down"
  105. },
  106. "action_edit": {
  107. //"access": "admin",
  108. "title": "action_edit",
  109. "text": "action_edit",
  110. "action": "action_edit",
  111. "condition": "function( d ){ return this.editActionReturn(d) }",
  112. "styles": "documentActionNode",
  113. "mouseoverStyles": "documentActionNode_over",
  114. "mousedownStyles": "documentActionNode_down"
  115. },
  116. "action_delete": {
  117. "title": "action_delete",
  118. "text": "action_delete",
  119. "action": "action_delete",
  120. "condition": "function( d ){ return this.removeActionReturn(d) }",
  121. "styles": "documentActionNode",
  122. "mouseoverStyles": "documentActionNode_over",
  123. "mousedownStyles": "documentActionNode_down"
  124. }
  125. }
  126. }
  127. }
  128. ]
  129. }