config.jsx 2.49 KB
Newer Older
wuhao's avatar
wuhao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// component
import SvgColor from "@/components/svg-color";

// ----------------------------------------------------------------------

const icon = (name) => (
  <SvgColor
    src={`./assets/icons/navbar/${name}.svg`}
    sx={{ width: 1, height: 1 }}
  />
);

const navConfig = [
  {
    title: "教学中心",
    children: [
      {
        title: "实训管理",
wuhao's avatar
wuhao committed
19
        path: "/work/bustrain",
wuhao's avatar
wuhao committed
20 21 22 23
        icon: icon("ic-shixun"),
      },
      {
        title: "作业批阅",
wuhao's avatar
wuhao committed
24
        path: "/work/products",
wuhao's avatar
wuhao committed
25 26 27 28
        icon: icon("ic_book"),
      },
      {
        title: "成绩单",
wuhao's avatar
wuhao committed
29
        path: "/work/blog",
wuhao's avatar
wuhao committed
30 31 32 33
        icon: icon("ic_grade"),
      },
      {
        title: "教学情况",
wuhao's avatar
wuhao committed
34
        path: "/work/userc",
wuhao's avatar
wuhao committed
35 36 37 38 39 40 41 42 43
        icon: icon("ic_jiaoxue"),
      },
    ],
  },
  {
    title: "学习中心",
    children:[
      {
        title: "我的实训",
wuhao's avatar
wuhao committed
44
        path: "/work/mybustrain",
wuhao's avatar
wuhao committed
45 46 47 48
        icon: icon("ic_training"),
      },
      {
        title: "我的成绩",
wuhao's avatar
wuhao committed
49
        path: "/work/home",
wuhao's avatar
wuhao committed
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
        icon: icon("ic_grades"),
        info: (
          <div
            style={{
              marginRight: 12,
              backgroundColor: "#ff4800",
              width: 20,
              height: 20,
              textAlign: "center",
              lineHeight: "20px",
              color: "#fff",
              borderRadius: 12,
              fontSize: 12,
            }}
          >
            12
          </div>
        ),
      },
      {
        title: "学习记录",
wuhao's avatar
wuhao committed
71
        path: "/work/userc",
wuhao's avatar
wuhao committed
72 73 74 75 76 77 78 79 80 81
        icon: icon("ic_list"),
      },
    
    ]
  },
  {
    title: "管理中心",
    children:[
      {
        title: "首页",
wuhao's avatar
wuhao committed
82
        path: "/work/app",
wuhao's avatar
wuhao committed
83 84
        icon: icon("ic_analytics"),
      },
wuhao's avatar
wuhao committed
85 86
      {
        title: "组织管理",
wuhao's avatar
wuhao committed
87
        path: "/work/organization",
wuhao's avatar
wuhao committed
88 89
        icon: icon("ic_org"),
      },
wuhao's avatar
wuhao committed
90 91
      {
        title: "教师管理",
wuhao's avatar
wuhao committed
92
        path: "/work/teacher",
wuhao's avatar
wuhao committed
93 94 95 96
        icon: icon("ic_user"),
      },
      {
        title: "学生管理",
wuhao's avatar
wuhao committed
97
        path: "/work/student",
wuhao's avatar
wuhao committed
98 99 100 101
        icon: icon("ic_student"),
      },
      {
        title: "班级管理",
wuhao's avatar
wuhao committed
102
        path: "/work/class",
wuhao's avatar
wuhao committed
103 104 105
        icon: icon("ic_class"),
      },
      {
wuhao's avatar
wuhao committed
106 107
        title: "课程管理",
        path: "/work/lessons",
wuhao's avatar
wuhao committed
108 109 110 111
        icon: icon("ic_lock"),
      },
      {
        title: "模型管理",
wuhao's avatar
wuhao committed
112
        path: "/work/model",
wuhao's avatar
wuhao committed
113 114 115 116
        icon: icon("ic_3d"),
      },
      {
        title: "平台日志",
wuhao's avatar
wuhao committed
117
        path: "/work/logs",
wuhao's avatar
wuhao committed
118 119 120 121 122 123 124 125 126
        icon: icon("ic_blog"),
      },
    ]
  },

  
];

export default navConfig;