|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<!-- 学生详情 -->
|
|
|
- <div class="studentDetail">
|
|
|
+ <div class="studentDetail" ref="tabs">
|
|
|
<bar :tit="'学生记录'" :backPage="1"></bar>
|
|
|
<div style="height: 50px;"></div>
|
|
|
<!-- 顶部学生信息开始 -->
|
|
@@ -144,6 +144,7 @@ import selectStyle from './components/selectStyle.vue'
|
|
|
import bar from './components/bar.vue'
|
|
|
// 弹窗组件
|
|
|
import pop from './components/pop.vue'
|
|
|
+import BScroll from '@better-scroll/core'
|
|
|
export default {
|
|
|
components: {
|
|
|
bar,
|
|
@@ -184,7 +185,8 @@ export default {
|
|
|
// 学期记录条数
|
|
|
TermRecord: [],
|
|
|
|
|
|
- timeOutEvent: 0
|
|
|
+ timeOutEvent: 0,
|
|
|
+ scorllTaps: null
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -439,6 +441,14 @@ export default {
|
|
|
this.$router.push(`/studentEvaluate?shareShow=${1}&rid=${e}&cid=${this.$route.query.cid}`)
|
|
|
}
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.scorllTaps = new BScroll(this.$refs['tabs'], {
|
|
|
+ scrollX: true,
|
|
|
+ eventPassthrough: 'vertical' // 允许纵向滚动穿透
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
created() {
|
|
|
this.stuId = localStorage.getItem('userId')
|
|
|
this.selTerm()
|