menu-list.js 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. // 一个菜单可以包括的所有属性
  2. // {
  3. // id: '12345', // 菜单id, 必须唯一
  4. // name: '用户中心', // 菜单名称, 同时也是tab选项卡上显示的名称
  5. // icon: 'el-icon-user', // 菜单图标, 参考地址: https://element.eleme.cn/#/zh-CN/component/icon
  6. // info: '管理所有用户', // 菜单介绍, 在菜单预览和分配权限时会有显示
  7. // url: 'sa-html/user/user-list.html', // 菜单指向地址
  8. // parentId: 1, // 所属父菜单id, 如果指定了一个值, sa-admin在初始化时会将此菜单转移到指定菜单上
  9. // isShow: true, // 是否显示, 默认true
  10. // isBlank: false, // 是否属于外部链接, 如果为true, 则点击菜单时从新窗口打开
  11. // childList: [ // 指定这个菜单所有的子菜单, 子菜单可以继续指定子菜单, 至多支持三级菜单
  12. // // ....
  13. // ],
  14. // click: function(){} // 点击菜单执行一个函数
  15. // }
  16. // 定义菜单列表
  17. var menuList = [
  18. {
  19. id: 'tb-costomer',
  20. name: '客户管理',
  21. icon: 'el-icon-folder-opened',
  22. info: '客户管理表数据的维护',
  23. childList: [
  24. {id: 'tb-costomer-list', name: '客户列表', url: 'sa-view/tb-costomer/tb-costomer-list.html'},
  25. {id: 'tb-costomer-judge', name: '客户审核', url: 'sa-view/tb-costomer/tb-costomer-judge.html'},
  26. ]
  27. },
  28. {
  29. id: 'tb-goods',
  30. name: '商品管理',
  31. icon: 'el-icon-folder-opened',
  32. info: '商品管理表数据的维护',
  33. childList: [
  34. {id: 'tb-goods-list', name: '商品管理-列表', url: 'sa-view/tb-goods/tb-goods-list.html'},
  35. {id: 'tb-goods-add', name: '商品管理-添加', url: 'sa-view/tb-goods/tb-goods-add.html'},
  36. ]
  37. },
  38. {
  39. id: 'tb-business',
  40. name: '业务录入管理',
  41. icon: 'el-icon-folder-opened',
  42. info: '业务登记表数据的维护',
  43. childList: [
  44. {id: 'tb-business-list', name: '业务列表', url: 'sa-view/tb-business/tb-business-list.html'},
  45. {id: 'tb-business-add', name: '录入业务', url: 'sa-view/tb-business/tb-business-add.html', isShow: false},
  46. {id: 'tb-business-confirm', name: '业务确认', url: 'sa-view/tb-business/tb-business-list.html', isShow: false},
  47. {id: 'tb-business-pay', name: '业务支付', url: 'sa-view/tb-business/tb-business-list.html', isShow: false},
  48. ]
  49. },
  50. {
  51. id: 'tb-item',
  52. name: '业务配置项管理',
  53. icon: 'el-icon-folder-opened',
  54. info: '业务配置项表数据的维护',
  55. childList: [
  56. {id: 'tb-item-list', name: '业务配置项-列表', url: 'sa-view/tb-item/tb-item-list.html'},
  57. {id: 'tb-item-add', name: '业务配置项-添加', url: 'sa-view/tb-item/tb-item-add.html'},
  58. ]
  59. },
  60. {
  61. id: 'tb-car',
  62. name: '车辆管理',
  63. icon: 'el-icon-folder-opened',
  64. info: '表数据的维护',
  65. childList: [
  66. {id: 'tb-car-list', name: '车辆-列表', url: 'sa-view/tb-car/tb-car-list.html'},
  67. {id: 'tb-car-add', name: '车辆-添加', url: 'sa-view/tb-car/tb-car-add.html'},
  68. ]
  69. },
  70. {
  71. id: 'tb-driver',
  72. name: '司机管理',
  73. icon: 'el-icon-folder-opened',
  74. info: '司机表数据的维护',
  75. childList: [
  76. {id: 'tb-driver-list', name: '司机-列表', url: 'sa-view/tb-driver/tb-driver-list.html'},
  77. {id: 'tb-driver-add', name: '司机-添加', url: 'sa-view/tb-driver/tb-driver-add.html'},
  78. ]
  79. },
  80. ]