menu.js 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /**
  2. * 菜单配置
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/6/5
  6. * @version
  7. */
  8. let menuData = {
  9. 'dashboard': {
  10. title: '首页',
  11. url: '/dashboard',
  12. name: 'dashboard',
  13. iconClass: 'glyphicon glyphicon-home'
  14. },
  15. 'user': {
  16. title: '用户管理',
  17. url: '/user',
  18. name: 'user',
  19. iconClass: 'glyphicon glyphicon-user',
  20. children: {
  21. 'index' : {
  22. title: '最近注册',
  23. url: '/user',
  24. name: 'index',
  25. },
  26. 'last-login' : {
  27. title: '最近登录',
  28. url: '/user/last-login',
  29. name: 'last-login',
  30. }
  31. }
  32. },
  33. 'notify': {
  34. title: '通知管理',
  35. url: '/notify',
  36. name: 'notify',
  37. iconClass: 'glyphicon glyphicon-bell',
  38. children: {
  39. 'index' : {
  40. title: '用户通知',
  41. url: '/notify',
  42. name: 'index',
  43. },
  44. 'company' : {
  45. title: '内部通知',
  46. url: '/notify/company',
  47. name: 'company',
  48. }
  49. }
  50. },
  51. 'version': {
  52. title: '编办管理',
  53. url: '/compilation',
  54. name: 'compilation',
  55. iconClass: 'glyphicon glyphicon-tag'
  56. },
  57. 'tool': {
  58. title: '工具',
  59. url: '/tool',
  60. name: 'tool',
  61. iconClass: 'glyphicon glyphicon-wrench'
  62. },
  63. 'manager': {
  64. title: '后台管理',
  65. url: '/manager',
  66. name: 'manager',
  67. iconClass: 'glyphicon glyphicon-cog',
  68. children: {
  69. 'index' : {
  70. title: '账号管理',
  71. url: '/manager',
  72. name: 'index',
  73. },
  74. 'admin' : {
  75. title: '超级管理员',
  76. url: '/manager/admin',
  77. name: 'admin',
  78. }
  79. }
  80. }
  81. };
  82. export default menuData;