调整左边弹框显示

This commit is contained in:
fan 2020-03-27 14:01:57 +08:00
parent fb8d0b6615
commit 3a8a3b87d8
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,6 @@ export default {
getPublishLessonTree(this.$route.query.lessonId).then(response => { getPublishLessonTree(this.$route.query.lessonId).then(response => {
if (response.data.tree && response.data.tree.length > 0) { if (response.data.tree && response.data.tree.length > 0) {
this.treeList = response.data.tree; this.treeList = response.data.tree;
console.log(this.treeList);
} }
}).catch(error => { }).catch(error => {
this.$message.error(this.$t('tip.failedCourse') + ':' + error.message); this.$message.error(this.$t('tip.failedCourse') + ':' + error.message);

View File

@ -40,7 +40,7 @@
</div> </div>
<!-- <Jl3d-Simulation v-show="simulationShow" ref="Jl3dSimulation" :panel-show="simulationShow" @showpanel="showpanel" /> --> <!-- <Jl3d-Simulation v-show="simulationShow" ref="Jl3dSimulation" :panel-show="simulationShow" @showpanel="showpanel" /> -->
<left-slider v-if="isLesson" @overallTranslation="overallTranslation" /> <left-slider v-if="isShowLeftSlider" @overallTranslation="overallTranslation" />
<Jl3d-Device v-if="deviceShow" ref="Jl3dDevice" :panel-show="deviceShow" @showdevice="showdevice" /> <Jl3d-Device v-if="deviceShow" ref="Jl3dDevice" :panel-show="deviceShow" @showdevice="showdevice" />
<Jl3d-Drive v-show="drivingShow" ref="Jl3dDrive" :panel-show="drivingShow" @showdriving="showdriving" /> <Jl3d-Drive v-show="drivingShow" ref="Jl3dDrive" :panel-show="drivingShow" @showdriving="showdriving" />
@ -165,6 +165,9 @@ export default {
isLesson() { isLesson() {
return this.mode === 'teach' || this.mode === 'manage'; return this.mode === 'teach' || this.mode === 'manage';
}, },
isShowLeftSlider() {
return (this.mode === 'teach' || this.mode === 'manage') && (this.$route.query.lessonId != '0');
},
isExam() { isExam() {
return this.mode === 'exam'; return this.mode === 'exam';
}, },