2019-10-22 13:40:42 +08:00
|
|
|
<template>
|
2019-10-22 14:28:22 +08:00
|
|
|
<div>
|
|
|
|
<el-scrollbar wrap-class="scrollbar-wrapper" :style="{ height: (height-125) +'px' }">
|
|
|
|
<el-tree
|
|
|
|
ref="tree"
|
|
|
|
:data="treeList"
|
|
|
|
node-key="id"
|
|
|
|
:props="defaultProps"
|
|
|
|
highlight-current
|
|
|
|
:span="22"
|
|
|
|
:filter-node-method="filterNode"
|
|
|
|
:default-expanded-keys="expandList"
|
|
|
|
@node-click="clickEvent"
|
|
|
|
/>
|
|
|
|
</el-scrollbar>
|
|
|
|
<transition>
|
|
|
|
<router-view :style="{ position:'relative', left:widthLeft+'px', width: (width - widthLeft)+'px'}" :product-list="productList" />
|
|
|
|
</transition>
|
|
|
|
</div>
|
2019-10-22 13:40:42 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2019-10-22 14:28:22 +08:00
|
|
|
import { getLessonTree } from '@/api/jmap/lessondraft';
|
2019-10-22 13:40:42 +08:00
|
|
|
export default {
|
|
|
|
name: 'LessonDetail',
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
|
|
|
|
};
|
|
|
|
},
|
2019-10-22 14:28:22 +08:00
|
|
|
computed: {
|
|
|
|
width() {
|
|
|
|
return this.$store.state.app.width - 481 - this.widthLeft;
|
|
|
|
},
|
|
|
|
height() {
|
|
|
|
return this.$store.state.app.height - 90;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.initPageData();
|
|
|
|
},
|
2019-10-22 13:40:42 +08:00
|
|
|
methods: {
|
2019-10-22 14:28:22 +08:00
|
|
|
initPageData() {
|
|
|
|
getLessonTree(this.$route.query.lessonId);
|
|
|
|
}
|
2019-10-22 13:40:42 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|