menu.js 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. 'testUser' : {
  27. title: '测试用户',
  28. url: '/user/test-user',
  29. name: 'test-user',
  30. }
  31. }
  32. },
  33. 'notify': {
  34. title: '通知管理',
  35. url: '/notify',
  36. name: 'notify',
  37. iconClass: 'glyphicon glyphicon-bell',
  38. },
  39. 'version': {
  40. title: '费用定额',
  41. url: '/compilation',
  42. name: 'compilation',
  43. iconClass: 'glyphicon glyphicon-tag'
  44. },
  45. 'tool': {
  46. title: '工具',
  47. url: '/tool',
  48. name: 'tool',
  49. iconClass: 'glyphicon glyphicon-wrench'
  50. },
  51. 'manager': {
  52. title: '后台管理',
  53. url: '/manager',
  54. name: 'manager',
  55. iconClass: 'glyphicon glyphicon-cog',
  56. children: {
  57. 'index' : {
  58. title: '账号管理',
  59. url: '/manager',
  60. name: 'index',
  61. },
  62. 'authority' : {
  63. title: '权限组',
  64. url: '/manager/authority',
  65. name: 'authority',
  66. },
  67. 'admin' : {
  68. title: '超级管理员',
  69. url: '/manager/admin',
  70. name: 'admin',
  71. }
  72. }
  73. }
  74. };
  75. export default menuData;