| | |
| | | <div class="app-container"> |
| | | <div style="margin-bottom: 10px"> |
| | | <el-button type="success" plain @click="openDialog('addFirst',{courseId: data.courseId})">章添加</el-button> |
| | | |
| | | <el-button type="primary" plain @click="back">返回</el-button> |
| | | </div> |
| | | <!-- 表格数据 --> |
| | | <el-table v-loading="loading" :data="dataList" :border="true" row-key="id" :tree-props="{ children: 'chapterPeriods' }"> |
| | |
| | | import {delArea, getArea} from "@/api/backManage/area"; |
| | | import {getDictList} from "@/api/backManage/evaluate"; |
| | | import {delMonitor} from "@/api/sysUsers"; |
| | | import {useRoute} from 'vue-router' |
| | | import {useRoute,useRouter} from 'vue-router' |
| | | import {delClassification, getClassification} from "@/api/onlineEducation/courseClass"; |
| | | import {delChapter, delPeriod, getChapters} from "@/api/onlineEducation/chapters"; |
| | | const { proxy } = getCurrentInstance(); |
| | | const route = useRoute() |
| | | const router = useRouter(); |
| | | const loading = ref(false); |
| | | const areaRef = ref(); |
| | | const cityList = ref([]) |
| | |
| | | dataList.value = res.data.map(item => { |
| | | return { |
| | | ...item, |
| | | timeFormat: item.resourceType === 1 || item.resourceType === 2 ? secondsToTime(item.resourceLength) : item.docPage + '页' |
| | | chapterPeriods: item.chapterPeriods.map(r => { |
| | | return { |
| | | ...r, |
| | | timeFormat: r.resource.resourceType === 1 || r.resource.resourceType === 2 ? secondsToTime(r.resource.resourceLength) : r.resource.docPage + '页' |
| | | } |
| | | }) |
| | | |
| | | } |
| | | }) |
| | | }else{ |
| | |
| | | |
| | | }) |
| | | } |
| | | const back = () => { |
| | | router.push("/courseManage/course"); |
| | | } |
| | | |
| | | |
| | | </script> |