|
@@ -13,17 +13,23 @@ const schoolRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
{
|
|
|
path: "/",
|
|
|
redirect: "/areaboard",
|
|
|
- meta: { hidden: true },
|
|
|
+ meta: { hidden: true, name: "Home" },
|
|
|
},
|
|
|
{
|
|
|
path: "/areaboard",
|
|
|
component: "AdminIndex",
|
|
|
redirect: "/areaboard/index",
|
|
|
+ meta: { title: "数据看板", name: "Dashboard" },
|
|
|
children: [
|
|
|
{
|
|
|
path: "index",
|
|
|
component: "areaboard/index",
|
|
|
- meta: { title: "区域级数据看板", icon: "board", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "区域级数据看板",
|
|
|
+ name: "DashboardArea",
|
|
|
+ icon: "board",
|
|
|
+ keepAlive: true,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -35,22 +41,33 @@ const adminRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
{
|
|
|
path: "/",
|
|
|
redirect: "/dashboard",
|
|
|
- meta: { hidden: true },
|
|
|
+ meta: { hidden: true, name: "Home" },
|
|
|
},
|
|
|
{
|
|
|
path: "/dashboard",
|
|
|
component: "SchoolIndex",
|
|
|
redirect: "/dashboard/index",
|
|
|
+ meta: { title: "数据看板", name: "Dashboard" },
|
|
|
children: [
|
|
|
{
|
|
|
path: "index",
|
|
|
component: "dashboard/index",
|
|
|
- meta: { title: "数据看板", icon: "board", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "数据看板",
|
|
|
+ name: "DashboardIndex",
|
|
|
+ icon: "board",
|
|
|
+ keepAlive: true,
|
|
|
+ breadcrumb: false,
|
|
|
+ },
|
|
|
},
|
|
|
{
|
|
|
path: "example",
|
|
|
component: "dashboard/example",
|
|
|
- meta: { title: "数据看板示例", hidden: true },
|
|
|
+ meta: {
|
|
|
+ title: "数据看板示例",
|
|
|
+ name: "DashboardExample",
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -58,11 +75,18 @@ const adminRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
path: "/class",
|
|
|
component: "SchoolIndex",
|
|
|
redirect: "/class/index",
|
|
|
+ meta: { title: "班级管理", name: "ClassManage" },
|
|
|
children: [
|
|
|
{
|
|
|
path: "index",
|
|
|
component: "class/index",
|
|
|
- meta: { title: "班级管理", icon: "class", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "班级管理",
|
|
|
+ name: "ClassIndex",
|
|
|
+ icon: "class",
|
|
|
+ keepAlive: true,
|
|
|
+ breadcrumb: false,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -70,11 +94,18 @@ const adminRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
path: "/teacher",
|
|
|
component: "SchoolIndex",
|
|
|
redirect: "/teacher/index",
|
|
|
+ meta: { title: "教师管理", name: "TeacherManage" },
|
|
|
children: [
|
|
|
{
|
|
|
path: "index",
|
|
|
component: "teacher/index",
|
|
|
- meta: { title: "教师管理", icon: "teacher", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "教师管理",
|
|
|
+ name: "TeacherIndex",
|
|
|
+ icon: "teacher",
|
|
|
+ keepAlive: true,
|
|
|
+ breadcrumb: false,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -82,11 +113,23 @@ const adminRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
path: "/student",
|
|
|
component: "SchoolIndex",
|
|
|
redirect: "/student/index",
|
|
|
+ meta: { title: "学生管理", name: "StudentManage" },
|
|
|
children: [
|
|
|
{
|
|
|
path: "index",
|
|
|
component: "student/index",
|
|
|
- meta: { title: "学生管理", icon: "student", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "学生管理",
|
|
|
+ name: "StudentIndex",
|
|
|
+ icon: "student",
|
|
|
+ keepAlive: true,
|
|
|
+ breadcrumb: false,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "result",
|
|
|
+ component: "student/result",
|
|
|
+ meta: { title: "训练效果分析", name: "StudentResult", hidden: true },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -94,11 +137,18 @@ const adminRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
path: "/equipment",
|
|
|
component: "SchoolIndex",
|
|
|
redirect: "/equipment/index",
|
|
|
+ meta: { title: "设备管理", name: "EquipmentManage" },
|
|
|
children: [
|
|
|
{
|
|
|
path: "index",
|
|
|
component: "equipment/index",
|
|
|
- meta: { title: "设备管理", icon: "equipment", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "设备管理",
|
|
|
+ name: "EquipmentIndex",
|
|
|
+ icon: "equipment",
|
|
|
+ keepAlive: true,
|
|
|
+ breadcrumb: false,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -106,11 +156,18 @@ const adminRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
path: "/training",
|
|
|
component: "SchoolIndex",
|
|
|
redirect: "/training/index",
|
|
|
+ meta: { title: "训练管理", name: "TrainingManage" },
|
|
|
children: [
|
|
|
{
|
|
|
- path: "inxdex",
|
|
|
+ path: "index",
|
|
|
component: "training/index",
|
|
|
- meta: { title: "训练管理", icon: "training", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "训练管理",
|
|
|
+ name: "TrainingIndex",
|
|
|
+ icon: "training",
|
|
|
+ keepAlive: true,
|
|
|
+ breadcrumb: false,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -118,11 +175,18 @@ const adminRoutes: RouteRecordRaw[] = JSON.parse(
|
|
|
path: "/evaluation",
|
|
|
component: "SchoolIndex",
|
|
|
redirect: "/evaluation/index",
|
|
|
+ meta: { title: "测评数据看板", name: "EvaluateManage" },
|
|
|
children: [
|
|
|
{
|
|
|
path: "index",
|
|
|
component: "evaluation/index",
|
|
|
- meta: { title: "测评数据看板", icon: "evaluation", keepAlive: true },
|
|
|
+ meta: {
|
|
|
+ title: "测评数据看板",
|
|
|
+ name: "EvaluateIndex",
|
|
|
+ icon: "evaluation",
|
|
|
+ keepAlive: true,
|
|
|
+ breadcrumb: false,
|
|
|
+ },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
@@ -145,6 +209,7 @@ const filterAsyncRoutes = (routes: RouteRecordRaw[], roles: string[]) => {
|
|
|
tmpRoute.component = Layout;
|
|
|
console.log("SchoolIndex");
|
|
|
} else if (tmpRoute.component?.toString() == "AdminIndex") {
|
|
|
+ tmpRoute.component = Admin;
|
|
|
console.log("AdminIndex");
|
|
|
} else {
|
|
|
const component = modules[`../../views/${tmpRoute.component}.vue`];
|