提交 4b2436cc authored 作者: 王拯's avatar 王拯

在字段为0的情况下隐藏特定导航条

上级 4533cbb2
...@@ -81,11 +81,10 @@ ...@@ -81,11 +81,10 @@
<script> <script>
import cAction from '@action' import cAction from '@action'
const UserInfo = window.G.UserInfo.student_info || {}
export default { export default {
components: {}, components: {},
data () { data () {
const _global = this.$GLOBAL
return { return {
filter: { filter: {
studyEarly: 'down', studyEarly: 'down',
...@@ -97,9 +96,9 @@ export default { ...@@ -97,9 +96,9 @@ export default {
selectIndex: 0, selectIndex: 0,
key: 'course_type', key: 'course_type',
arrItem: [ arrItem: [
{ val: '1', name: this.$t('action.courseAction.mustLearn'), show: (_global && _global.UserInfo).student_info.is_open_textbook_learning }, { val: '1', name: this.$t('action.courseAction.mustLearn'), show: UserInfo.is_open_textbook_learning },
{ val: '2', name: this.$t('action.courseAction.changeLearn'), show: (_global && _global.UserInfo).student_info.is_open_required_course }, { val: '2', name: this.$t('action.courseAction.changeLearn'), show: UserInfo.is_open_required_course },
{ val: '3', name: this.$t('action.courseAction.repeatLearn'), show: (_global && _global.UserInfo).student_info.is_open_extended_course } { val: '3', name: this.$t('action.courseAction.repeatLearn'), show: UserInfo.is_open_extended_course }
] ]
}], }],
homeList: [], // 从后台请求 homeList: [], // 从后台请求
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论