919_serviceCentre.js 6.43 KB
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
  919: {
    path: "/serviceCentre",
    name: "serviceCentre",
    meta: {
      title: "学习中心",
      authId: "919",
      parentId: "1",
      cache: false
    }
  },
  91901: {
    path: "/longCourse",
    name: "longCourse",
    meta: {
      title: "长课程配置",
      authId: "91901",
      parentId: "919",
      cache: false
    },
    auth: [
      {
        authId: "9190101",
        parentId: "91901",
        label: "配置课程",
        handle: "handleConfigureCourse",
        addRoutePath: [
          {
            authId: "91903",
            name: "配置课程",
            parentId: "91901"
          }
        ]
      },
      {
        authId: "9190102",
        parentId: "91901",
        label: "查看",
        handle: "handleDetail"
      }
    ],
    component: _import("serviceCentre/longCourse/longCourseCenter")
  },
  91902: {
    path: "/shortCourse",
    name: "shortCourse",
    meta: {
      title: "短课程配置",
      authId: "91902",
      parentId: "919",
      cache: false
    },
    auth: [
      {
        authId: "9190201",
        parentId: "91902",
        label: "查看",
        handle: "handleDetail"
      }
    ],
    component: _import("serviceCentre/shortCourse/index")
  },
  91903: {
    path: "/configureCourse",
    name: "configureCourse",
    meta: {
      title: "配置课程",
      authId: "91903",
      parentId: "91901",
      cache: false,
      activePath: "/longCourse"
    },
    component: _import("serviceCentre/longCourse/components/configureCourse")
  },
  91904: {
    path: "/examinationManagement",
    name: "examinationManagement",
    meta: {
      title: "考试管理",
      authId: "91904",
      parentId: "919",
      cache: false
    },
    auth: [
      {
        authId: "9190401",
        parentId: "91904",
        label: "新建考试",
        handle: "handleExamination",
        category: "Button",
        type: "primary",
        addRoutePath: [
          {
            authId: "91905",
            name: "等级考试",
            parentId: "91904"
          }
        ]
      },
      {
        authId: "9190402",
        parentId: "91904",
        label: "查看",
        handle: "handleDetail",
        addRoutePath: [
          {
            authId: "91906",
            name: "考试详情",
            parentId: "91904"
          }
        ]
      },
      {
        authId: "9190403",
        parentId: "91904",
        label: "导出",
        category: "Button",
        type: "primary",
        handle: "handleExport"
      },
      {
        authId: "9190404",
        parentId: "91904",
        label: "失效",
        handle: "handlelose"
      },
      {
        authId: "9190408",
        parentId: "91904",
        label: "生效",
        handle: "handleEffect"
      },
      {
        authId: "9190405",
        parentId: "91904",
        label: "删除",
        handle: "handleDelete"
      },
      {
        authId: "9190406",
        parentId: "91904",
        label: "数据",
        handle: "handleDataView"
      },
      {
        authId: "9190407",
        parentId: "91904",
        label: "编辑",
        handle: "handleEdit"
      }
    ],
    component: _import("serviceCentre/examinationManagement/index")
  },
  91905: {
    path: "/addExamination",
    name: "addExamination",
    meta: {
      title: "等级考试",
      authId: "91905",
      parentId: "91904",
      cache: false,
      activePath: "/examinationManagement"
    },
    component: _import("serviceCentre/examinationManagement/add.vue")
  },
  91906: {
    path: "/examinationDetail",
    name: "examinationDetail",
    meta: {
      title: "考试详情",
      authId: "91906",
      parentId: "91904",
      cache: false,
      activePath: "/examinationManagement"
    },
    component: _import("serviceCentre/examinationManagement/detail.vue")
  },
  91907: {
    path: "/courseManagement",
    name: "courseManagement",
    meta: {
      title: "课程管理",
      authId: "91907",
      parentId: "919",
      cache: false
    },
    auth: [
      {
        authId: "9190701",
        parentId: "91907",
        label: "新增培训计划",
        handle: "handleAddTrainPlan",
        category: "Button",
        type: "primary",
        addRoutePath: [
          {
            authId: "91908",
            name: "课程培训计划",
            parentId: "91907"
          }
        ]
      },
      {
        authId: "9190702",
        parentId: "91907",
        label: "同步数据",
        handle: "handleSynchrodata",
        category: "Button",
        type: "primary"
      },
      {
        authId: "9190703",
        parentId: "91907",
        label: "批量分类",
        category: "Button",
        type: "primary",
        handle: "handleClassification"
      },
      {
        authId: "9190709",
        parentId: "91907",
        label: "导出",
        category: "Button",
        type: "primary",
        handle: "handleCourseExport"
      },
      {
        authId: "9190704",
        parentId: "91907",
        label: "数据",
        handle: "handleDataView"
      },
      {
        authId: "9190705",
        parentId: "91907",
        label: "编辑",
        handle: "handleEdit"
      },
      {
        authId: "9190706",
        parentId: "91907",
        label: "查看",
        handle: "handleDetail",
        addRoutePath: [
          {
            authId: "91909",
            name: "查看培训计划",
            parentId: "91907"
          }
        ]
      },
      {
        authId: "9190707",
        parentId: "91907",
        label: "失效",
        handle: "handlelose"
      },
      {
        authId: "9190708",
        parentId: "91907",
        label: "生效",
        handle: "handleEffect"
      }
    ],
    component: _import("serviceCentre/courseManagement/index")
  },
  91908: {
    path: "/addTraining",
    name: "addTraining",
    meta: {
      title: "课程培训计划",
      authId: "91908",
      parentId: "91907",
      cache: false,
      activePath: "/courseManagement"
    },
    component: _import("serviceCentre/courseManagement/training/add.vue")
  },
  91909: {
    path: "/trainingView",
    name: "trainingView",
    meta: {
      title: "查看培训计划",
      authId: "91908",
      parentId: "91907",
      cache: false,
      activePath: "/courseManagement"
    },
    component: _import("serviceCentre/courseManagement/training/detail.vue")
  }
}