Commit d05407ab authored by zhengke's avatar zhengke

Merge branch 'master' of http://gitlab.oytour.com/luochao/confucius

# Conflicts:
#	src/pages/course/prepareclassDetails.vue
parents 6a1323dc 19a58185
<template>
<q-page class="flex flex-center">
<q-page class="cloumn home">
<!-- <img alt="Quasar logo" src="~assets/quasar-logo-full.svg"> -->
<img style="width:250px;" alt="Quasar logo" src="../assets/images/logo.png" />
<div class="box">
<div style="margin: 0 auto;width: 130px;">
<el-tabs v-model="model" >
<el-tab-pane :label="item.label" :name="item.value" :key="item.value" v-for="(item, index) in options"></el-tab-pane>
</el-tabs>
</div>
</div>
<div v-if="model=='one'" class="flex flex-center" style="flex: 1;min-height: 800px">
<img style="width:250px;" alt="Quasar logo" src="../assets/images/logo.png" />
</div>
<div v-if="model=='two'" style="padding-bottom: 50px;height: 800px;overflow: auto">
<teachplan></teachplan>
</div>
</q-page>
</template>
<script>
import teachplan from './course/teacherLesson'
export default {
name: 'PageIndex'
components:{
teachplan
},
name: 'PageIndex',
data(){
return{
options:[
{label: 'OKR', value: 'one'},
],
model: 'one',
AccountType:1,
ispower:false,
}
},
created() {
},
mounted() {
let userInfo = this.getLocalStorage();
if(userInfo.AccountType && userInfo.AccountType==2){ //是否是教师1不是 2是
this.options=[
{label: 'OKR', value: 'one'},
{label: '备课管理', value: 'two'},
];
}
this.ispower = false;
if(userInfo.MenuList.length>0){
this.getMapList(userInfo.MenuList)//判断菜单权限是否有
}
if(this.ispower=true){
this.options=[
{label: 'OKR', value: 'one'},
{label: '备课管理', value: 'two'},
];
}
},
methods:{
getMapList(list){
list.forEach(x=>{
if(x.MenuUrl == '/course/teacherLesson'){
this.ispower=true
}
if(x.SubList.length>0){
this.getMapList(x.SubList)
}
})
}
}
}
</script>
<style>
.home .box{
width: 100%;
}
.home {
margin: 0;
}
::-webkit-scrollbar {
display: none; /* Chrome Safari */
}
.box{
margin: 0 0 15px;
}
.box .el-tabs__header{
margin: 0;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment