|
|
@@ -37,8 +37,9 @@
|
|
|
:slide="slide" :click-handler="handleSlideCardClick"></slide-card>
|
|
|
</div>
|
|
|
<template v-for="courseFile of courseFiles">
|
|
|
- <course-file-card class="mt-6" :key="'file-' + courseFile.id" :hide-time="!showMore" :click-handler="handleCourseFileCardClick"
|
|
|
- :courseFile="courseFile">
|
|
|
+ <course-file-card class="mt-6" :key="'file-' + courseFile.id" :hide-time="!showMore"
|
|
|
+ :click-handler="handleCourseFileCardClick"
|
|
|
+ :courseFile="courseFile">
|
|
|
</course-file-card>
|
|
|
</template>
|
|
|
</tab-side-component>
|
|
|
@@ -62,7 +63,17 @@ import NoticeCard from '@/components/Cards/NoticeCard'
|
|
|
import { getNotices } from '@/server/notice'
|
|
|
|
|
|
export default {
|
|
|
- components: { NoticeCard, CourseFileCard, CourseDetail, ShowTransition, TabActions, CButton, SlideCard, BackTitle, TabSideComponent },
|
|
|
+ components: {
|
|
|
+ NoticeCard,
|
|
|
+ CourseFileCard,
|
|
|
+ CourseDetail,
|
|
|
+ ShowTransition,
|
|
|
+ TabActions,
|
|
|
+ CButton,
|
|
|
+ SlideCard,
|
|
|
+ BackTitle,
|
|
|
+ TabSideComponent
|
|
|
+ },
|
|
|
data () {
|
|
|
return {
|
|
|
slides: null,
|
|
|
@@ -87,12 +98,8 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
init () {
|
|
|
- this.getSlides(20).then(() => {
|
|
|
- this.getSlides(10000)
|
|
|
- })
|
|
|
- this.getCourseFiles(20).then(() => {
|
|
|
- this.getCourseFiles(10000)
|
|
|
- })
|
|
|
+ this.getSlides(10000)
|
|
|
+ this.getCourseFiles(10000)
|
|
|
getNotices({ courseId: this.course.id }).then(res => {
|
|
|
this.notices = res.data
|
|
|
}).catch(err => {
|