|
@@ -126,27 +126,27 @@ export default {
|
|
|
getData() {
|
|
|
const id = this.$store.state.user.userinfo.organizeid
|
|
|
select_techerAllClass({ cid: id }).then(res => {
|
|
|
- console.log('获取老师所管理班级学生', res)
|
|
|
+ // console.log('获取老师所管理班级学生', res)
|
|
|
this.classLists = res[0]
|
|
|
// 调用一次,将导航栏数据展示出来
|
|
|
this.cutPage(this.classLists[0].id)
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- beforeRouteEnter(to, from, next) {
|
|
|
- document.addEventListener(
|
|
|
- 'touchmove',
|
|
|
- function(event) {
|
|
|
- event.preventDefault()
|
|
|
- },
|
|
|
- false
|
|
|
- )
|
|
|
- next(vm => {})
|
|
|
- },
|
|
|
+ // beforeRouteEnter(to, from, next) {
|
|
|
+ // document.addEventListener(
|
|
|
+ // 'touchmove',
|
|
|
+ // function(event) {
|
|
|
+ // event.preventDefault()
|
|
|
+ // },
|
|
|
+ // false
|
|
|
+ // )
|
|
|
+ // next(vm => {})
|
|
|
+ // },
|
|
|
mounted() {},
|
|
|
created() {
|
|
|
this.getData()
|
|
|
- console.log('state', this.$store.state)
|
|
|
+ // console.log('state', this.$store.state)
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -181,7 +181,7 @@ export default {
|
|
|
height: calc(100vh - 125px);
|
|
|
// background-color: #4a8efc;
|
|
|
box-sizing: border-box;
|
|
|
- margin-top: 20px;
|
|
|
+ // margin-top: 20px;
|
|
|
min-height: 300px;
|
|
|
overflow-y: auto;
|
|
|
overflow-x: hidden;
|