mencCofig.js 4.3 KB

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