zhouwx
2024-08-05 4f6cdee3d3a9967b6955aacc354bf557430c0643
src/layout/components/Sidebar/menu.js
@@ -1,16 +1,50 @@
import Layout from '@/layout'
const menu = {
    adminMenu: [
        // {
        //     path: '/course',
        //     name: 'Course',
        //     meta: { title: '课程管理',icon: 'documentation',affix: true }
        // },
        {
            path: '/course',
            name: 'Course',
            meta: { title: '课程管理',icon: 'documentation',affix: true }
            path: '/courseManage',
            redirect: '/onlineEducation/courseManage',
            meta: { title: '课程管理',icon: 'form'},
            children: [
                {
                    path: 'course',
                    name: 'course',
                    meta: { title: '课程列表',icon: 'list'}
                } ,
                {
                    path: 'courseResource',
                    name: 'courseResource',
                    meta: { title: '课程资源',icon: 'education'}
                } ,
            ]
        },
        {
            path: '/question',
            name: 'Question',
            meta: { title: '题库管理',icon: 'build',affix: true }
            path: '/questionBankManagement',
            redirect: '/onlineEducation/questionBankManagement',
            meta: { title: '题目题库管理',icon: 'build'},
            children: [
                {
                    path: 'questionBank',
                    name: 'questionBank',
                    meta: { title: '题库列表',icon: 'list'}
                } ,
                {
                    path: 'question',
                    name: 'question',
                    meta: { title: '题目列表',icon: 'education'}
                } ,
            ]
        },
        // {
        //     path: '/question',
        //     name: 'Question',
        //     meta: { title: '题库管理',icon: 'build',affix: true }
        // },
        {
            path: '/class',
            name: 'Class',
@@ -64,27 +98,90 @@
            ]
        },
    ],
    agencyMenu: [
    companyMenu: [
        {
            path: '/project',
            name: 'Project',
            meta: { title: '项目管理',icon: 'form',affix: true }
        },
        {
            path: '/projectSupplement',
            name: 'projectSupplement',
            meta: { title: '项目补录',icon: 'form',affix: true }
        },
        {
            path: '/userManage',
            redirect: '/userManage/supervise',
            meta: { title: '用户管理',icon: 'peoples'},
            path: '/courseManage',
            redirect: '/onlineEducation/courseManage',
            meta: { title: '课程管理',icon: 'form'},
            children: [
                {
                    path: 'expertUsers',
                    name: 'expertUsers',
                    meta: { title: '专家用户管理',icon: 'logininfor'}
                    path: 'course',
                    name: 'course',
                    meta: { title: '课程列表',icon: 'list'}
                } ,
                {
                    path: 'courseResource',
                    name: 'courseResource',
                    meta: { title: '课程资源',icon: 'education'}
                } ,
            ]
        },
        {
            path: '/questionBankManagement',
            redirect: '/onlineEducation/questionBankManagement',
            meta: { title: '题目题库管理',icon: 'build'},
            children: [
                {
                    path: 'questionBank',
                    name: 'questionBank',
                    meta: { title: '题库列表',icon: 'list'}
                } ,
                {
                    path: 'question',
                    name: 'question',
                    meta: { title: '题目列表',icon: 'education'}
                } ,
            ]
        },
        // {
        //     path: '/question',
        //     name: 'Question',
        //     meta: { title: '题库管理',icon: 'build',affix: true }
        // },
        {
            path: '/class',
            name: 'Class',
            meta: { title: '课时批次',icon: 'education',affix: true }
        },
        {
            path: '/group',
            name: 'Group',
            meta: { title: '组卷考试分配',icon: 'job',affix: true }
        },
        {
            path: '/offline',
            name: 'Offline',
            meta: { title: '线下教育登记',icon: 'log',affix: true }
        },
        {
            path: '/people',
            name: 'People',
            meta: { title: '人员管理',icon: 'peoples',affix: true }
        },
        {
            path: '/count',
            name: 'Count',
            meta: { title: '数据统计',icon: 'server',affix: true }
        },
        {
            path: '/systemManage',
            redirect: '/systemManage/courseClassification',
            meta: { title: '系统管理',icon: 'dict'},
            children: [
                {
                    path: 'courseClassification',
                    name: 'courseClassification',
                    meta: { title: '课程分类',icon: 'form'}
                } ,
                {
                    path: 'user',
                    name: 'user',
                    meta: { title: '用户管理',icon: 'logininfor'}
                } ,
                {
                    path: 'banner',
                    name: 'banner',
                    meta: { title: '轮播图管理',icon: 'druid'}
                } ,
            ]
        },