|
@@ -11,12 +11,13 @@
|
|
|
<index-card-colleage class="mt20 index-block"></index-card-colleage>
|
|
|
<!-- 资讯 -->
|
|
|
<index-card-news-single class="mt20 index-block" type="高考政策" morePath="/fuzhu/newGaokaoNews" />
|
|
|
- <!-- 大数据选科 -->
|
|
|
- <index-card-elective class="mt20 index-block"></index-card-elective>
|
|
|
+ <!-- 大数据选科, 老师没有选科权限 -->
|
|
|
+ <index-card-elective v-if="!hiddenElectiveBlock" class="mt20 index-block"></index-card-elective>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import {mapGetters} from 'vuex'
|
|
|
import IndexCardCareer from '@/views/index/components/index-card-career'
|
|
|
import IndexCardElectiveTest from '@/views/index/components/index-card-elective-test'
|
|
|
import IndexCardSubjectQuery from '@/views/index/components/index-card-subject-query'
|
|
@@ -71,6 +72,12 @@ export default {
|
|
|
]
|
|
|
}
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(['isFrontTeacher', 'currentUser']),
|
|
|
+ hiddenElectiveBlock() {
|
|
|
+ return this.isFrontTeacher || this.currentUser.isHiddenV2
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
}
|
|
|
}
|