调整左边弹框显示

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 => {
if (response.data.tree && response.data.tree.length > 0) {
this.treeList = response.data.tree;
console.log(this.treeList);
}
}).catch(error => {
this.$message.error(this.$t('tip.failedCourse') + ':' + error.message);

View File

@ -40,7 +40,7 @@
</div>
<!-- <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-Drive v-show="drivingShow" ref="Jl3dDrive" :panel-show="drivingShow" @showdriving="showdriving" />
@ -165,6 +165,9 @@ export default {
isLesson() {
return this.mode === 'teach' || this.mode === 'manage';
},
isShowLeftSlider() {
return (this.mode === 'teach' || this.mode === 'manage') && (this.$route.query.lessonId != '0');
},
isExam() {
return this.mode === 'exam';
},