mencCofig.js 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. export const menuData = [
  2. // 有子菜单 字菜单不分组的
  3. {
  4. oneMenuName: "设备管理",
  5. iconClassName: "el-icon-monitor",
  6. index: '1',
  7. disabled: false, // 是否禁用
  8. childList: [
  9. {
  10. optionName: '设备类型',
  11. index: '1-1',
  12. routerName: "deviceType"
  13. },
  14. {
  15. optionName: '设备信息',
  16. index: '1-2',
  17. routerName: "deviceInfo"
  18. },
  19. {
  20. optionName: '选项3',
  21. index: '1-3',
  22. routerName: "home1_3"
  23. },
  24. {
  25. optionName: '选项4',
  26. index: '1-4',
  27. routerName: "home1_4"
  28. }
  29. ]
  30. },
  31. {
  32. oneMenuName: "区域管理",
  33. iconClassName: "el-icon-s-flag",
  34. index: '2',
  35. disabled: false,
  36. childList: [
  37. {
  38. optionName: '区域信息',
  39. index: '2-1',
  40. routerName: "areaInfo"
  41. },
  42. {
  43. optionName: '选项2',
  44. index: '2-2',
  45. routerName: "home1_4"
  46. }
  47. ]
  48. },
  49. // 无子菜单的
  50. {
  51. oneMenuName: "消息管理",
  52. iconClassName: "el-icon-message",
  53. index: '3',
  54. disabled: false,
  55. childList: [
  56. {
  57. optionName: '消息方式',
  58. index: '3-1',
  59. routerName: "messageMode"
  60. },
  61. {
  62. optionName: '消息点',
  63. index: '3-2',
  64. routerName: "messagePoint"
  65. },
  66. {
  67. optionName: '消息模板',
  68. index: '3-3',
  69. routerName: "messageTemplate"
  70. },
  71. {
  72. optionName: '服务提供商',
  73. index: '3-4',
  74. routerName: "messageServicMer"
  75. }
  76. ]
  77. },
  78. // 有子菜单 字菜单不分组的
  79. {
  80. oneMenuName: "导航四",
  81. iconClassName: "el-icon-menu",
  82. index: '4',
  83. disabled: false, // 是否禁用
  84. childList: [
  85. {
  86. optionName: '选项1',
  87. index: '4-1',
  88. routerName: "home4-1"
  89. },
  90. {
  91. optionName: '选项2',
  92. index: '4-2',
  93. routerName: "home4-2"
  94. },
  95. {
  96. optionName: '选项3',
  97. index: '4-3',
  98. routerName: "home4-3"
  99. }
  100. ]
  101. },
  102. ]
  103. // export default {menuData}
  104. /* 菜单配置 描述 */
  105. const menuData描述 = [
  106. // 有子菜单 并且字菜单分组的
  107. {
  108. oneMenuName: "导航一", // 一级菜单名
  109. iconClassName: "aaa", // element-ui图标名
  110. index: '1', // 唯一标志
  111. childList: [ // 分组的
  112. {
  113. groupName: '组名一',
  114. index: '1-1-1',
  115. list: [
  116. {
  117. optionName: '选项1',
  118. routerName: "home"
  119. },
  120. {}
  121. ],
  122. },
  123. {
  124. groupName: '组名二',
  125. index: '1-1-2',
  126. list: [
  127. {
  128. optionName: '选项1',
  129. routerName: "home"
  130. },
  131. {}
  132. ],
  133. }
  134. ],
  135. },
  136. // 有子菜单 字菜单不分组的
  137. {
  138. oneMenuName: "导航二",
  139. iconClassName: "el-icon-menu",
  140. index: '2',
  141. disabled: false, // 是否禁用
  142. childList: [ // 不分组的
  143. {
  144. optionName: '选项1',
  145. index: '2-1',
  146. routerName: "home"
  147. },
  148. {}
  149. ]
  150. },
  151. // 无子菜单的
  152. {
  153. oneMenuName: "导航三",
  154. iconClassName: "el-icon-document",
  155. routerName: "home",
  156. index: '3',
  157. disabled: false
  158. },
  159. "导航四"
  160. ]