Commit b4d6a35a authored by Mac's avatar Mac

修改

parent e02c4ac9
<template> <template>
<q-page class="cloumn home"> <div class="home" >
<!-- <img alt="Quasar logo" src="~assets/quasar-logo-full.svg"> --> <!-- <img alt="Quasar logo" src="~assets/quasar-logo-full.svg"> -->
<div class="box"> <div class="box" v-if="AccountType==2 || ispower==true">
<div style="margin: 0 auto;width: 130px;"> <div style="margin: 0 auto;width: 130px;">
<el-tabs v-model="model" > <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-tab-pane :label="item.label" :name="item.value" :key="item.value" v-for="(item, index) in options"></el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -13,10 +12,10 @@ ...@@ -13,10 +12,10 @@
<div v-if="model=='one'" class="flex flex-center" style="flex: 1;min-height: 750px"> <div v-if="model=='one'" class="flex flex-center" style="flex: 1;min-height: 750px">
<img style="width:250px;" alt="Quasar logo" src="../assets/images/logo.png" /> <img style="width:250px;" alt="Quasar logo" src="../assets/images/logo.png" />
</div> </div>
<div v-if="model=='two'" style="padding-bottom: 50px;min-height: 750px;overflow: auto"> <div v-if="model=='two'" style="height: 750px;overflow: auto">
<teachplan></teachplan> <teachplan></teachplan>
</div> </div>
</q-page> </div>
</template> </template>
<script> <script>
...@@ -34,7 +33,8 @@ ...@@ -34,7 +33,8 @@
], ],
model: 'one', model: 'one',
AccountType:1, AccountType:1,
ispower:false, ispower:false,//是否显示备课管理
} }
}, },
created() { created() {
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
}, },
mounted() { mounted() {
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.AccountType = userInfo.AccountType
if(userInfo.AccountType && userInfo.AccountType==2){ //是否是教师1不是 2是 if(userInfo.AccountType && userInfo.AccountType==2){ //是否是教师1不是 2是
this.options=[ this.options=[
{label: 'OKR', value: 'one'}, {label: 'OKR', value: 'one'},
...@@ -52,15 +53,12 @@ ...@@ -52,15 +53,12 @@
if(userInfo.MenuList.length>0){ if(userInfo.MenuList.length>0){
this.getMapList(userInfo.MenuList)//判断菜单权限是否有 this.getMapList(userInfo.MenuList)//判断菜单权限是否有
} }
if(this.ispower=true){ if(this.ispower==true){
this.options=[ this.options=[
{label: 'OKR', value: 'one'}, {label: 'OKR', value: 'one'},
{label: '备课管理', value: 'two'}, {label: '备课管理', value: 'two'},
]; ];
} }
}, },
methods:{ methods:{
getMapList(list){ getMapList(list){
...@@ -81,6 +79,7 @@ ...@@ -81,6 +79,7 @@
.home .box{ .home .box{
width: 100%; width: 100%;
height: 50px; height: 50px;
} }
.home { .home {
margin: 0; margin: 0;
......
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