import Home from "../../portal/views/home/Home.vue";
import Tips from "../../portal/views/tips/Tips.vue";
import school from "../view/school.vue";
import campus from "../view/campus.vue";
import user from "../view/user.vue";
import specially from "../view/specially.vue";
import course from "../view/course.vue";
import examSite from "../view/exam_site.vue";
import app_list from "../view/app_list.vue";
import privilege_group_list from "../view/privilege_group_list.vue";
import privilege_tree from "../view/privilege_tree.vue";
import role_privilege_settings from "../view/role_privilege_settings.vue";

export default [
  {
    path: "/basic", //基础信息
    component: Home,
    children: [
      {
        path: "tips", //模块说明
        component: Tips
      },
      {
        path: "course", //课程管理
        meta: { privilegeCodes: "index_course" },
        component: course
      },
      {
        path: "specially", //专业管理
        meta: { privilegeCodes: "index_specially" },
        component: specially
      },
      {
        path: "school", //学校管理
        meta: { privilegeCodes: "index_school" },
        component: school
      },
      {
        path: "campus", //学习中心管理
        meta: { privilegeCodes: "index_campus" },
        component: campus
      },
      {
        path: "examSite/:orgId", //考点管理
        meta: { privilegeCodes: "index_campus" },
        component: examSite
      },
      {
        path: "user", //用户管理
        meta: { privilegeCodes: "index_user" },
        component: user
      },
      {
        path: "app_list", //应用列表
        meta: { pageName: "应用列表" },
        component: app_list
      },
      {
        path: "privilege_group_list", //权限组列表
        meta: { pageName: "权限组列表" },
        component: privilege_group_list
      },
      {
        path: "privilege_tree/:privilegeGroupId", //权限树
        meta: { pageName: "权限树" },
        component: privilege_tree
      },
      {
        path: "role_privilege_settings", //角色权限设置
        meta: { privilegeCodes: "index_role_privilege_settings" },
        component: role_privilege_settings
      }
    ]
  }
];
