对接课程预览

This commit is contained in:
hbzgyjh 2021-12-25 17:57:54 +08:00
parent bac5df6af4
commit 42e8636efb
1 changed files with 12 additions and 4 deletions

View File

@ -2,7 +2,7 @@
<a-card :bordered="false" title="课件预览"> <a-card :bordered="false" title="课件预览">
<template slot="extra"> <template slot="extra">
<h4 style="margin-right: 15px; display:inline-block">课程类别待填充</h4> <h4 style="margin-right: 15px; display:inline-block">课程类别待填充</h4>
<a-button size="small" @click="goback">返回</a-button> <a-button v-if="!!!coursewareId" size="small" @click="goback">返回</a-button>
</template> </template>
<div style="width:100%;height:600px;"> <div style="width:100%;height:600px;">
@ -24,8 +24,8 @@
</a-card> </a-card>
</div> </div>
</a-col> </a-col>
<a-divider type="vertical" :dashed="false"/> <a-divider type="vertical" :dashed="false" />
<a-divider type="vertical" :dashed="false"/> <a-divider type="vertical" :dashed="false" />
<a-col :span="10" style="flex-shrink: 0; background-color: #f0f2f5"> <a-col :span="10" style="flex-shrink: 0; background-color: #f0f2f5">
<div> <div>
<a-tabs default-active-key="1" @change="callback" style="margin-left: 50px"> <a-tabs default-active-key="1" @change="callback" style="margin-left: 50px">
@ -96,11 +96,18 @@ import { testing } from '@/api/course/question/requiredQuestion'
export default { export default {
components: { videoPlayer }, components: { videoPlayer },
props: {
coursewareId: {
type: Number,
}
},
watch: {
},
data() { data() {
return { return {
type: 1, type: 1,
isactive: 0, isactive: 0,
queryParam: { coursewareId: this.$route.query.coursewareId }, queryParam: { coursewareId: this.$route.query.coursewareId || this.coursewareId },
courseware: [], // courseware: [], //
question: [], // question: [], //
coursewareName: '', coursewareName: '',
@ -126,6 +133,7 @@ export default {
} }
}, },
created() { created() {
console.log('porp - coursewareId :',this.coursewareId)
let parameter = {} let parameter = {}
coursewareDeatil(Object.assign(parameter, this.queryParam)).then((res) => { coursewareDeatil(Object.assign(parameter, this.queryParam)).then((res) => {
// //