listItemRole.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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": "roleType",
  28. "head": {
  29. "html": "<th styles='normalThNode' lable='roleType'></th>",
  30. "width": "10%"
  31. },
  32. "content": {
  33. "html": "<td styles='normalTdCenterNode' item='roleType'></td>",
  34. "items": {
  35. "roleType" : {}
  36. }
  37. }
  38. },
  39. {
  40. "name": "roleName",
  41. "head": {
  42. "html": "<th styles='normalThNode' lable='roleName'></th>",
  43. "width": "20%"
  44. },
  45. "content": {
  46. "html": "<td styles='normalTdCenterNode' item='roleName'></td>",
  47. "items": {
  48. "roleName" : {}
  49. }
  50. }
  51. },
  52. {
  53. "name": "roleCode",
  54. "head": {
  55. "html": "<th styles='normalThNode' lable='roleCode'></th>",
  56. "width": "20%"
  57. },
  58. "content": {
  59. "html": "<td styles='normalTdCenterNode' item='roleCode'></td>",
  60. "items": {
  61. "roleCode" : {}
  62. }
  63. }
  64. },
  65. {
  66. "name": "description",
  67. "head": {
  68. "html": "<th styles='normalThNode' lable='description'></th>",
  69. "width": "40%"
  70. },
  71. "content": {
  72. "html": "<td styles='normalTdCenterNode' item='description'></td>",
  73. "items": {
  74. "description" : {}
  75. }
  76. }
  77. },
  78. {
  79. //"access": "admin",
  80. "head": {
  81. "html": "<th styles='normalThNode' lable='action'></th>",
  82. "width": "20%"
  83. },
  84. "content": {
  85. "html": "<td styles='normalTdCenterNode'>" +
  86. " <span styles='documentActionNode' item='action_comfirm'></span>" +
  87. " <span styles='documentActionNode' item='remove'></span>" +
  88. "</td>",
  89. "items": {
  90. "action_edit": {
  91. //"access": "admin",
  92. "title": "edit",
  93. "text": "edit",
  94. "action": "action_edit",
  95. "styles": "documentActionNode",
  96. "mouseoverStyles": "documentActionNode_over",
  97. "mousedownStyles": "documentActionNode_down"
  98. },
  99. "remove": {
  100. "title": "remove",
  101. "text": "remove",
  102. "action": "remove",
  103. "condition": "function( d ){ return true }",
  104. "styles": "documentActionNode",
  105. "mouseoverStyles": "documentActionNode_over",
  106. "mousedownStyles": "documentActionNode_down"
  107. }
  108. }
  109. }
  110. }
  111. ]
  112. }