给万里学院开放实验台切换

master
yujialong 1 week ago
parent 5a25741842
commit 38d69167c2
  1. 11
      src/pages/station/list/index.vue

@ -10,10 +10,10 @@
</div>
<div class="station">
<div class="inner">
<!-- <div class="tab">
<div v-if="showTypes" class="tab">
<a class="item" v-for="(item, i) in types" :key="i" :class="{ active: item.id === typeActive }"
@click="tabChange(item)">{{ item.name }}</a>
</div> -->
</div>
<div class="tab-wrap">
<span class="label">课程类型</span>
@ -71,6 +71,7 @@ export default {
typeActive: +this.$route.query.typeActive || 0,
active: this.$route.query.active ? +this.$route.query.active : '',
searchTimer: null,
showTypes: false,
types: [
{
id: 0,
@ -112,8 +113,14 @@ export default {
},
mounted () {
this.getTab()
this.getSchoolId()
},
methods: {
// schoolId
async getSchoolId () {
const { data } = await this.$get(this.api.logoDetail)
this.showTypes = data.schoolId === 901
},
// tab
async getTab () {
const res = await this.$get(this.api.getSchoolCourseAuthority)

Loading…
Cancel
Save