<template>
  <!--  <component :is="activeName" />-->
  <div>
    <Course v-show="activeName=='Course'" />
    <CouresInfo v-if="activeName=='CouresInfo'" v-show="activeName=='CouresInfo'" /> <!-- 查看-->
    <CourseEdit v-if="activeName=='CourseEdit'" v-show="activeName=='CourseEdit'" /> <!-- 编辑 -->
    <CouresUserInfo v-if="activeName=='CouresUserInfo' || activeName=='CourseUserStagestInfo' " v-show="activeName=='CouresUserInfo'" /> <!-- 学员详情 -->
    <courseUserStagestInfo v-if="activeName=='CourseUserStagestInfo'" v-show="activeName=='CourseUserStagestInfo'" /> <!-- 学习详情 -->
    <CourseKaoshiInfo v-if="activeName=='CourseKaoshiInfo'" v-show="activeName=='CourseKaoshiInfo'" /> <!-- 考试详情 -->
    <KaoshiInfo v-if="activeName=='KaoshiInfo'" v-show="activeName=='KaoshiInfo'" /> <!-- 考卷详情 -->
  </div>
</template>

<script>
import Course from './components/course' // 任务管理列表
import CouresInfo from './components/courseInfo' // 查看试卷

import CourseEdit from './components/courseEdit' // 修改试卷

import Student from './components/student' // 学员详情
import CourseExamResult from '../exam/components/info' // 学员试卷详情
import CourseAdd from './components/courseAdd' // 添加试卷
import CouresUserInfo from './components/courseUserInfo' // 学员详情
import CourseKaoshiInfo from './components/courseKaoshiInfo'
import CourseUserStagestInfo from './components/courseUserStagestInfo'
import KaoshiInfo from './components/kaoshiInfo' // 学员试卷详情
export default {
  components: { Course, Student, CourseExamResult, CourseAdd,
    CouresInfo, CouresUserInfo, CourseKaoshiInfo, CourseUserStagestInfo, KaoshiInfo, CourseEdit },
  data() {
    return {
      activeName: 'Course',
      CURRICULUM_ID: '',
      COURSEEXAM_ID: '',
      STUDYTASK_ID: '',
      STUDYTASK_USERID: '',
      STAGEEXAMPAPER_ID: ''
    }
  }
}
</script>

<style scoped>

</style>
