对接课程预览

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="课件预览">
<template slot="extra">
<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>
<div style="width:100%;height:600px;">
@ -96,11 +96,18 @@ import { testing } from '@/api/course/question/requiredQuestion'
export default {
components: { videoPlayer },
props: {
coursewareId: {
type: Number,
}
},
watch: {
},
data() {
return {
type: 1,
isactive: 0,
queryParam: { coursewareId: this.$route.query.coursewareId },
queryParam: { coursewareId: this.$route.query.coursewareId || this.coursewareId },
courseware: [], //
question: [], //
coursewareName: '',
@ -126,6 +133,7 @@ export default {
}
},
created() {
console.log('porp - coursewareId :',this.coursewareId)
let parameter = {}
coursewareDeatil(Object.assign(parameter, this.queryParam)).then((res) => {
//