123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- import BasicLayout from '../layouts/BasicLayout';
- import Exception403 from '../routes/Exception/403';
- import Exception404 from '../routes/Exception/404';
- import Exception500 from '../routes/Exception/500';
- import ImageList from '../routes/Resource/ImageList';
- import VideoList from '../routes/Resource/VideoList';
- import TagList from '../routes/Product/TagList';
- import TagSave from '../routes/Product/TagSave';
- import WareList from '../routes/Product/WareList';
- import WareSave from '../routes/Product/WareSave';
- import LessonList from '../routes/Product/LessonList';
- import LessonSave from '../routes/Product/LessonSave';
- import CourseList from '../routes/Product/CourseList';
- import CourseSave from '../routes/Product/CourseSave';
- import SupportList from '../routes/Product/SupportList';
- import SupportSave from '../routes/Product/SupportSave';
- import ItemList from '../routes/Goods/ItemList';
- import ItemSave from '../routes/Goods/ItemSave';
- const data = [
- {
- component: BasicLayout,
- layout: 'BasicLayout',
- name: '首页', // for breadcrumb
- path: '/',
- children: [
- // 一级菜单:销售概览模块,
- // filter为true为不在侧边菜单显示
- {
- name: '销售概览',
- icon: 'dashboard',
- path: 'sales',
- children: [{
- name: '概览',
- path: 'view',
- component: Exception404,
- },{
- name: '销售详情',
- path: 'detail',
- component: Exception404,
- }],
- },
- // 一级菜单:资源管理模块
- {
- name: '资源管理',
- icon: 'folder',
- path: 'resource',
- children: [{
- name: '图库管理',
- path: 'image',
- component: ImageList,
- },{
- name: '视频管理',
- path: 'video',
- component: VideoList,
- }],
- },
- // 一级菜单:课程及周边配套管理
- {
- name: '产品管理',
- icon: 'appstore',
- path: 'product',
- children: [{
- name: '标签管理',
- path: 'tag',
- component: TagList,
- filter: true,
- children: [{
- name: '添加',
- path: 'add',
- component: TagSave,
- },{
- name: '编辑',
- path: 'edit',
- component: TagSave,
- }],
- },{
- name: '课件管理',
- path: 'ware',
- component: WareList,
- filter: true,
- children: [{
- name: '添加',
- path: 'add',
- component: WareSave,
- },{
- name: '编辑',
- path: 'edit',
- component: WareSave,
- }],
- },{
- name: '课管理',
- path: 'lesson',
- component: LessonList,
- filter: true,
- children: [{
- name: '添加',
- path: 'add',
- component: LessonSave,
- },{
- name: '编辑',
- path: 'edit',
- component: LessonSave,
- }],
- },{
- name: '课程管理',
- path: 'course',
- component: CourseList,
- filter: true,
- children: [{
- name: '添加',
- path: 'add',
- component: CourseSave,
- },{
- name: '编辑',
- path: 'edit',
- component: CourseSave,
- }],
- },{
- name: '周边配套管理',
- path: 'support',
- component: SupportList,
- filter: true,
- children: [{
- name: '添加',
- path: 'add',
- component: SupportSave,
- },{
- name: '编辑',
- path: 'edit',
- component: SupportSave,
- }]
- }],
- },
- // 一级菜单:产品管理模块
- {
- name: '商品管理',
- icon: 'shopping-cart',
- path: 'goods',
- children: [{
- name: '商品管理',
- path: 'item',
- component: ItemList,
- filter: true,
- children: [{
- name: '添加',
- path: 'add',
- component: ItemSave,
- },{
- name: '编辑',
- path: 'edit',
- component: ItemSave,
- }],
- },{
- name: '商品包管理',
- path: 'combo',
- component: Exception404,
- }],
- },
- // 一级菜单:厂商管理
- {
- name: '厂商管理',
- icon: 'team',
- path: 'merchant',
- children: [{
- name: '供应商管理',
- path: 'cp',
- component: Exception404,
- },{
- name: '渠道方管理',
- path: 'project',
- component: Exception404,
- }],
- },
- // 一级菜单:订单管理模块
- {
- name: '交易管理',
- icon: 'trademark',
- path: 'trade',
- children: [{
- name: '订单管理',
- path: 'order',
- component: Exception404,
- }],
- },
- // 一级菜单:终端管理模块
- {
- name: '终端管理',
- icon: 'desktop',
- path: 'terminal',
- children: [{
- name: '终端用户',
- path: 'user',
- component: Exception404,
- },{
- name: '校区管理',
- path: 'campus',
- component: Exception404,
- }],
- },
- // 一级菜单:行为统计模块
- {
- name: '行为统计',
- icon: 'scan',
- path: 'action',
- children: [{
- name: '使用记录',
- path: 'usage',
- component: Exception404,
- }],
- }
- ],
- },
- ];
- export function getNavData() {
- return data;
- }
- export default data;
|