mencCofig.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. export const menuData = [
  2. // 有子菜单 字菜单不分组的
  3. {
  4. oneMenuName: "设备管理",
  5. iconClassName: "el-icon-menu",
  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. {
  33. oneMenuName: "导航二",
  34. iconClassName: "el-icon-document",
  35. routerName: "home2",
  36. index: '2',
  37. disabled: false
  38. },
  39. // 无子菜单的
  40. {
  41. oneMenuName: "导航三",
  42. iconClassName: "el-icon-document",
  43. routerName: "home3",
  44. index: '3',
  45. disabled: false,
  46. },
  47. // 有子菜单 字菜单不分组的
  48. {
  49. oneMenuName: "导航四",
  50. iconClassName: "el-icon-menu",
  51. index: '4',
  52. disabled: false, // 是否禁用
  53. childList: [ // 不分组的
  54. {
  55. optionName: '选项1',
  56. index: '4-1',
  57. routerName: "home4-1"
  58. },
  59. {
  60. optionName: '选项2',
  61. index: '4-2',
  62. routerName: "home4-2"
  63. },
  64. {
  65. optionName: '选项3',
  66. index: '4-3',
  67. routerName: "home4-3"
  68. },
  69. ]
  70. },
  71. ]
  72. // export default {menuData}
  73. /* 菜单配置 描述 */
  74. const menuData描述 = [
  75. // 有子菜单 并且字菜单分组的
  76. {
  77. oneMenuName: "导航一", // 一级菜单名
  78. iconClassName: "aaa", // element-ui图标名
  79. index: '1', // 唯一标志
  80. childList: [ // 分组的
  81. {
  82. groupName: '组名一',
  83. index: '1-1-1',
  84. list: [
  85. {
  86. optionName: '选项1',
  87. routerName: "home"
  88. },
  89. {}
  90. ],
  91. },
  92. {
  93. groupName: '组名二',
  94. index: '1-1-2',
  95. list: [
  96. {
  97. optionName: '选项1',
  98. routerName: "home"
  99. },
  100. {}
  101. ],
  102. }
  103. ],
  104. },
  105. // 有子菜单 字菜单不分组的
  106. {
  107. oneMenuName: "导航二",
  108. iconClassName: "el-icon-menu",
  109. index: '2',
  110. disabled: false, // 是否禁用
  111. childList: [ // 不分组的
  112. {
  113. optionName: '选项1',
  114. index: '2-1',
  115. routerName: "home"
  116. },
  117. {}
  118. ]
  119. },
  120. // 无子菜单的
  121. {
  122. oneMenuName: "导航三",
  123. iconClassName: "el-icon-document",
  124. routerName: "home",
  125. index: '3',
  126. disabled: false
  127. },
  128. "导航四"
  129. ]