mencCofig.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. export const menuData = [
  2. // 有子菜单 字菜单不分组的
  3. {
  4. oneMenuName: "系统配置",
  5. iconClassName: "el-icon-setting",
  6. index: '0',
  7. disabled: false, // 是否禁用
  8. childList: [
  9. {
  10. optionName: '配置管理',
  11. index: '0-0',
  12. routerName: "sysConfigManage"
  13. }
  14. ]
  15. },
  16. {
  17. oneMenuName: "设备管理",
  18. iconClassName: "el-icon-monitor",
  19. index: '1',
  20. disabled: false, // 是否禁用
  21. childList: [
  22. {
  23. optionName: '设备类型',
  24. index: '1-1',
  25. routerName: "deviceType"
  26. },
  27. {
  28. optionName: '设备信息',
  29. index: '1-2',
  30. routerName: "deviceInfo"
  31. },
  32. {
  33. optionName: '摄像头管理',
  34. index: '1-3',
  35. routerName: "cameraManagement"
  36. }
  37. ]
  38. },
  39. {
  40. oneMenuName: "区域管理",
  41. iconClassName: "el-icon-s-flag",
  42. index: '2',
  43. disabled: false,
  44. childList: [
  45. {
  46. optionName: '区域信息',
  47. index: '2-1',
  48. routerName: "areaInfo"
  49. }
  50. ]
  51. },
  52. // 无子菜单的
  53. {
  54. oneMenuName: "消息管理",
  55. iconClassName: "el-icon-message",
  56. index: '3',
  57. disabled: false,
  58. childList: [
  59. {
  60. optionName: '消息绑定',
  61. index: '3-1',
  62. routerName: "messageBind"
  63. },
  64. {
  65. optionName: '消息点',
  66. index: '3-2',
  67. routerName: "messagePoint"
  68. },
  69. {
  70. optionName: '消息模板',
  71. index: '3-3',
  72. routerName: "messageTemplate"
  73. },
  74. {
  75. optionName: '服务提供商',
  76. index: '3-4',
  77. routerName: "messageServicMer"
  78. }
  79. ]
  80. },
  81. {
  82. oneMenuName: "树目录结构",
  83. iconClassName: "el-icon-coordinate",
  84. index: '4',
  85. disabled: false,
  86. childList: [
  87. {
  88. optionName: '树目录管理',
  89. index: '4-1',
  90. routerName: "treeManagement"
  91. }
  92. ]
  93. },
  94. {
  95. oneMenuName: "开发用模板",
  96. iconClassName: "el-icon-menu",
  97. index: '100',
  98. disabled: false, // 是否禁用
  99. childList: [
  100. {
  101. optionName: '模板 1',
  102. index: '100-1',
  103. routerName: "aa"
  104. },
  105. {
  106. optionName: '普通表格',
  107. index: '100-2',
  108. routerName: "ab"
  109. },
  110. {
  111. optionName: '模板 3',
  112. index: '100-3',
  113. routerName: "ac"
  114. },
  115. {
  116. optionName: '模板 4',
  117. index: '100-4',
  118. routerName: "ad"
  119. },
  120. {
  121. optionName: '模板 5',
  122. index: '100-5',
  123. routerName: "ee"
  124. },
  125. {
  126. optionName: '模板 6',
  127. index: '100-6',
  128. routerName: "af"
  129. }
  130. ]
  131. },
  132. ]
  133. // export default {menuData}
  134. /* 菜单配置 描述 */
  135. const menuData描述 = [
  136. // 有子菜单 并且字菜单分组的
  137. {
  138. oneMenuName: "导航一", // 一级菜单名
  139. iconClassName: "aaa", // element-ui图标名
  140. index: '1', // 唯一标志
  141. childList: [ // 分组的
  142. {
  143. groupName: '组名一',
  144. index: '1-1-1',
  145. list: [
  146. {
  147. optionName: '选项1',
  148. routerName: "home"
  149. },
  150. {}
  151. ],
  152. },
  153. {
  154. groupName: '组名二',
  155. index: '1-1-2',
  156. list: [
  157. {
  158. optionName: '选项1',
  159. routerName: "home"
  160. },
  161. {}
  162. ],
  163. }
  164. ],
  165. },
  166. // 有子菜单 字菜单不分组的
  167. {
  168. oneMenuName: "导航二",
  169. iconClassName: "el-icon-menu",
  170. index: '2',
  171. disabled: false, // 是否禁用
  172. childList: [ // 不分组的
  173. {
  174. optionName: '选项1',
  175. index: '2-1',
  176. routerName: "home"
  177. },
  178. {}
  179. ]
  180. },
  181. // 无子菜单的
  182. {
  183. oneMenuName: "导航三",
  184. iconClassName: "el-icon-document",
  185. routerName: "home",
  186. index: '3',
  187. disabled: false
  188. },
  189. "导航四"
  190. ]