menu.js 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  1. import request from '@/utils/request'
  2. // 获取路由
  3. export const getRouters = () => {
  4. return request({
  5. url: '/system/menu/getRouters',
  6. method: 'get'
  7. })
  8. }
  9. export const json = {
  10. "msg": "操作成功",
  11. "code": 200,
  12. "data": [
  13. {
  14. "name": "System",
  15. "path": "/system",
  16. "hidden": false,
  17. "redirect": "noRedirect",
  18. "component": "Layout",
  19. "alwaysShow": true,
  20. "meta": {
  21. "title": "系统管理",
  22. "icon": "system",
  23. "noCache": false,
  24. "link": null
  25. },
  26. "children": [
  27. {
  28. "name": "User",
  29. "path": "user",
  30. "hidden": false,
  31. "component": "system/user/index",
  32. "meta": {
  33. "title": "用户管理",
  34. "icon": "user",
  35. "noCache": false,
  36. "link": null
  37. }
  38. },
  39. {
  40. "name": "Role",
  41. "path": "role",
  42. "hidden": false,
  43. "component": "system/role/index",
  44. "meta": {
  45. "title": "角色管理",
  46. "icon": "peoples",
  47. "noCache": false,
  48. "link": null
  49. }
  50. },
  51. {
  52. "name": "Menu",
  53. "path": "menu",
  54. "hidden": false,
  55. "component": "system/menu/index",
  56. "meta": {
  57. "title": "菜单管理",
  58. "icon": "tree-table",
  59. "noCache": false,
  60. "link": null
  61. }
  62. },
  63. {
  64. "name": "Dept",
  65. "path": "dept",
  66. "hidden": false,
  67. "component": "system/dept/index",
  68. "meta": {
  69. "title": "机构管理",
  70. "icon": "tree",
  71. "noCache": false,
  72. "link": null
  73. }
  74. },
  75. {
  76. "name": "Post",
  77. "path": "post",
  78. "hidden": false,
  79. "component": "system/post/index",
  80. "meta": {
  81. "title": "岗位管理",
  82. "icon": "post",
  83. "noCache": false,
  84. "link": null
  85. }
  86. },
  87. {
  88. "name": "Dict",
  89. "path": "dict",
  90. "hidden": false,
  91. "component": "system/dict/index",
  92. "meta": {
  93. "title": "字典管理",
  94. "icon": "dict",
  95. "noCache": false,
  96. "link": null
  97. }
  98. },
  99. {
  100. "name": "Config",
  101. "path": "config",
  102. "hidden": false,
  103. "component": "system/config/index",
  104. "meta": {
  105. "title": "参数设置",
  106. "icon": "edit",
  107. "noCache": false,
  108. "link": null
  109. }
  110. },
  111. {
  112. "name": "Notice",
  113. "path": "notice",
  114. "hidden": false,
  115. "component": "system/notice/index",
  116. "meta": {
  117. "title": "通知公告",
  118. "icon": "message",
  119. "noCache": false,
  120. "link": null
  121. }
  122. },
  123. {
  124. "name": "Log",
  125. "path": "log",
  126. "hidden": false,
  127. "redirect": "noRedirect",
  128. "component": "ParentView",
  129. "alwaysShow": true,
  130. "meta": {
  131. "title": "日志管理",
  132. "icon": "log",
  133. "noCache": false,
  134. "link": null
  135. },
  136. "children": [
  137. {
  138. "name": "Operlog",
  139. "path": "operlog",
  140. "hidden": false,
  141. "component": "monitor/operlog/index",
  142. "meta": {
  143. "title": "操作日志",
  144. "icon": "form",
  145. "noCache": false,
  146. "link": null
  147. }
  148. },
  149. {
  150. "name": "Logininfor",
  151. "path": "logininfor",
  152. "hidden": false,
  153. "component": "monitor/logininfor/index",
  154. "meta": {
  155. "title": "登录日志",
  156. "icon": "logininfor",
  157. "noCache": false,
  158. "link": null
  159. }
  160. }
  161. ]
  162. }
  163. ]
  164. },
  165. {
  166. "name": "Monitor",
  167. "path": "/monitor",
  168. "hidden": false,
  169. "redirect": "noRedirect",
  170. "component": "Layout",
  171. "alwaysShow": true,
  172. "meta": {
  173. "title": "系统监控",
  174. "icon": "monitor",
  175. "noCache": false,
  176. "link": null
  177. },
  178. "children": [
  179. {
  180. "name": "Online",
  181. "path": "online",
  182. "hidden": false,
  183. "component": "monitor/online/index",
  184. "meta": {
  185. "title": "在线用户",
  186. "icon": "online",
  187. "noCache": false,
  188. "link": null
  189. }
  190. },
  191. {
  192. "name": "Job",
  193. "path": "job",
  194. "hidden": false,
  195. "component": "monitor/job/index",
  196. "meta": {
  197. "title": "定时任务",
  198. "icon": "job",
  199. "noCache": false,
  200. "link": null
  201. }
  202. },
  203. {
  204. "name": "Druid",
  205. "path": "druid",
  206. "hidden": false,
  207. "component": "monitor/druid/index",
  208. "meta": {
  209. "title": "数据监控",
  210. "icon": "druid",
  211. "noCache": false,
  212. "link": null
  213. }
  214. },
  215. {
  216. "name": "Server",
  217. "path": "server",
  218. "hidden": false,
  219. "component": "monitor/server/index",
  220. "meta": {
  221. "title": "服务监控",
  222. "icon": "server",
  223. "noCache": false,
  224. "link": null
  225. }
  226. },
  227. {
  228. "name": "Cache",
  229. "path": "cache",
  230. "hidden": false,
  231. "component": "monitor/cache/index",
  232. "meta": {
  233. "title": "缓存监控",
  234. "icon": "redis",
  235. "noCache": false,
  236. "link": null
  237. }
  238. },
  239. {
  240. "name": "CacheList",
  241. "path": "cacheList",
  242. "hidden": false,
  243. "component": "monitor/cache/list",
  244. "meta": {
  245. "title": "缓存列表",
  246. "icon": "redis-list",
  247. "noCache": false,
  248. "link": null
  249. }
  250. }
  251. ]
  252. },
  253. {
  254. "name": "Tool",
  255. "path": "/tool",
  256. "hidden": false,
  257. "redirect": "noRedirect",
  258. "component": "Layout",
  259. "alwaysShow": true,
  260. "meta": {
  261. "title": "系统工具",
  262. "icon": "tool",
  263. "noCache": false,
  264. "link": null
  265. },
  266. "children": [
  267. {
  268. "name": "Build",
  269. "path": "build",
  270. "hidden": false,
  271. "component": "tool/build/index",
  272. "meta": {
  273. "title": "表单构建",
  274. "icon": "build",
  275. "noCache": false,
  276. "link": null
  277. }
  278. },
  279. {
  280. "name": "Gen",
  281. "path": "gen",
  282. "hidden": false,
  283. "component": "tool/gen/index",
  284. "meta": {
  285. "title": "代码生成",
  286. "icon": "code",
  287. "noCache": false,
  288. "link": null
  289. }
  290. },
  291. {
  292. "name": "Swagger",
  293. "path": "swagger",
  294. "hidden": false,
  295. "component": "tool/swagger/index",
  296. "meta": {
  297. "title": "系统接口",
  298. "icon": "swagger",
  299. "noCache": false,
  300. "link": null
  301. }
  302. }
  303. ]
  304. },
  305. {
  306. "name": "Http://ruoyi.vip",
  307. "path": "http://ruoyi.vip",
  308. "hidden": false,
  309. "component": "Layout",
  310. "meta": {
  311. "title": "若依官网",
  312. "icon": "guide",
  313. "noCache": false,
  314. "link": "http://ruoyi.vip"
  315. }
  316. }
  317. ]
  318. }