import PaperStructure from "../views/PaperStructure.vue";
import InsertPaperStructure from "../views/InsertPaperStructure.vue";
import InsertPaperStructureInfo from "../views/InsertPaperStructureInfo.vue";
import BluePaperStructure from "../views/BluePaperStructure.vue";
import InsertBluePaperStructure from "../views/InsertBluePaperStructure.vue";
import InsertBluePaperStructureInfo from "../views/InsertBluePaperStructureInfo.vue";
import CourseProperty from "../views/CourseProperty.vue";
import PropertyInfo from "../views/PropertyInfo.vue";
// import ImportPaper from "../views/ImportPaper.vue";
import ImportPaper from "../../question/views/QuestionManage";
import QuestionRecycle from "../../question/views/QuestionRecycle";
import SourceDetailManage from "../../question/views/SourceDetailManage";
import GenPaper from "../views/GenPaper.vue";
import ImportPaperInfo from "../views/ImportPaperInfo.vue";
// import GenPaperDetail from "../views/GenPaperDetail.vue";
import GenPaperDetail from "../../paper/views/BuildPaper.vue";
import Question from "../views/Question.vue";
import EditSelectQuestion from "../views/EditSelectQuestion.vue";
import EditOtherQuestion from "../views/EditOtherQuestion.vue";
import InsertPaperTitle from "../views/InsertPaperTitle.vue";
// import EditPaper from "../views/EditPaper.vue";
import EditPaper from "../../paper/views/EditPaper.vue";
import PreviewPaper from "../views/PreviewPaper.vue";
import SelectQuestion from "../views/SelectQuestion.vue";
import Tips from "../../portal/views/tips/Tips.vue";
import ExportTemplate from "../views/ExportTemplate.vue";
import School from "../views/School.vue";
import Course from "../views/Course.vue";
import user from "../views/user.vue";
import data_previllege from "../views/data_previllege.vue";
import PaperStorage from "../views/PaperStorage.vue";
import SynthesisPaper from "../views/SynthesisPaper.vue";
import SynthesisPaperStorage from "../views/SynthesisPaperStorage.vue";
import ViewPaper from "../views/ViewPaper.vue";
import OrgProperty from "../views/OrgProperty.vue";
// import PaperPendingTrial from "../views/PaperPendingTrial.vue";
import QuestionAudit from "../../question/views/QuestionAudit.vue";
import EditPaperPendingTrial from "../views/EditPaperPendingTrial.vue";
import PaperRecycle from "../../paper/views/PaperRecycle.vue";
import ExamPaperPendingTrial from "../../paper/views/AuditPaper.vue";
// import ExamPaperPendingTrial from "../views/ExamPaperPendingTrial.vue";
import CheckDuplicateList from "../views/CheckDuplicateList.vue";
import CheckDuplicateInfo from "../views/CheckDuplicateInfo.vue";
import License from "../views/License.vue";
import QuestionHome from "../views/Home";

export const menuRoutes = [
  {
    path: "/questions", //首页
    component: QuestionHome,
    children: [
      {
        path: "tips", //模块说明
        component: Tips,
      },
      {
        path: "school", //学校管理
        meta: { privilegeCodes: "index_school" },
        component: School,
      },
      {
        path: "org/property",
        name: "org_property", //学校管理
        component: OrgProperty,
      },
      {
        path: "user", //用户管理
        meta: { privilegeCodes: "index_user" },
        component: user,
      },
      {
        path: "user/data_previllege/:rootOrgId/:userId", //用户管理
        meta: { privilegeCodes: "index_user" },
        component: data_previllege,
      },
      {
        path: "course", //课程管理
        meta: { privilegeCodes: "index_course" },
        component: Course,
      },
      {
        path: "paper_structure/:isClear", //精确试卷结构列表
        component: PaperStructure,
      },
      {
        path: "insert_paper_structure/:id", //精确试卷结构（新增/修改）
        component: InsertPaperStructure,
      },
      {
        path: "insert_paper_structure_info/:id/:name/:detailId/:courseId?", //精确试卷结构添加题型结构
        component: InsertPaperStructureInfo,
      },
      {
        path: "blue_paper_structure/:isClear", //蓝图试卷结构列表
        component: BluePaperStructure,
      },
      {
        path: "insert_blue_paper_structure/:id", //蓝图试卷结构（新增/修改）
        component: InsertBluePaperStructure,
      },
      {
        path: "insert_blue_paper_structure_info/:id/:paperStructId", //蓝图试卷结构添加题型结构
        component: InsertBluePaperStructureInfo,
      },
      {
        path: "course_property/:isClear", //课程属性列表
        component: CourseProperty,
      },
      {
        path: "property_info/:id", //课程属性
        component: PropertyInfo,
      },
      {
        path: "import_paper/:isClear", //题库试卷列表
        name: "QuestionManage",
        component: ImportPaper,
      },
      {
        path: "question_recycle", // 题库列表回车站
        component: QuestionRecycle,
        name: "QuestionRecycle",
      },
      {
        path: "source_detail_manage", // 题型管理
        component: SourceDetailManage,
        name: "SourceDetailManage",
      },
      {
        path: "paper_pending_trial/:isClear", //题库待审列表
        component: QuestionAudit,
      },
      {
        path: "exam_paper_pending_trial/:isClear", //题库待审列表
        component: ExamPaperPendingTrial,
      },
      {
        path: "paper-recycle", //卷库回收站
        name: "PaperRecycle",
        component: PaperRecycle,
      },
      {
        path: "gen_paper/:isClear", //卷库试卷列表
        component: GenPaper,
        name: "PaperManage",
      },

      {
        path: "import_paper_info", //导入试卷页面
        component: ImportPaperInfo,
      },
      {
        path: "gen_paper_detail", //组卷页面
        name: "gen_paper_detail", //组卷页面
        component: GenPaperDetail,
      },
      {
        path: "export_template", //导出模板设定
        component: ExportTemplate,
      },
      {
        path: "question_list/:isClear", //试题列表
        component: Question,
      },
      {
        path: "check_duplicate_list/:isClear", //题库查重
        component: CheckDuplicateList,
      },
      {
        path: "check_duplicate_info", //题库查重审核
        name: "check_duplicate_info",
        component: CheckDuplicateInfo,
      },
      {
        path: "edit_select_question/:id", //编辑选择题(单选、多选)
        component: EditSelectQuestion,
      },
      {
        path: "edit_other_question/:id", //编辑其他题（填空、问答）
        component: EditOtherQuestion,
      },
      {
        path: "insert_paper_title", //添加试卷
        component: InsertPaperTitle,
      },
      {
        path: "edit_other_question/:paperId/:paperDetailId/:questionType/:courseId",
        component: EditOtherQuestion,
      },
      {
        path: "edit_select_question/:paperId/:paperDetailId/:questionType/:courseId",
        component: EditSelectQuestion,
      },
      {
        path: "paper_storage/:isClear",
        component: PaperStorage,
      },
      {
        path: "synthesis_paper_storage/:isClear?",
        component: SynthesisPaperStorage,
      },
      {
        path: "synthesis_paper",
        name: "SynthesisPaper",
        component: SynthesisPaper,
      },
      {
        path: "license", //授权管理
        component: License,
      },
    ],
  },
];

export const otherRoutes = [
  {
    path: "/edit_paper/:id/:parentView", //试卷编辑
    name: "EditPaper",
    component: EditPaper,
  },
  {
    path: "/edit_paper_pending_trial/:id/:parentView", //试卷编辑
    component: EditPaperPendingTrial,
  },
  {
    path: "/select_question/:id/:courseId/:paperDetailId/:parentView", //试卷选题
    component: SelectQuestion,
  },
  {
    path: "/preview_paper/:paperId", //预览试卷
    component: PreviewPaper,
  },
  {
    path: "/view_paper/:id", //试卷查看
    name: "ViewPaper",
    component: ViewPaper,
  },
];
