listItemDrafter.json 4.3 KB

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