|
@@ -2,7 +2,7 @@
|
|
<div class="teacherDevelop">
|
|
<div class="teacherDevelop">
|
|
<topBar title="教师发展" detail="资料收集 · 智能表单 · 教师管理 · 会议妙计"></topBar>
|
|
<topBar title="教师发展" detail="资料收集 · 智能表单 · 教师管理 · 会议妙计"></topBar>
|
|
<div class="cardBox">
|
|
<div class="cardBox">
|
|
- <card v-for="item in cardArray" :key="item.title" :title="item.title" :icon="item.icon" :to="item.to" :type="item.type"></card>
|
|
|
|
|
|
+ <card v-for="item in cardData(cardArray)" :key="item.title" :title="item.title" :icon="item.icon" :to="item.to" :type="item.type"></card>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -15,14 +15,25 @@ export default {
|
|
topBar,
|
|
topBar,
|
|
card
|
|
card
|
|
},
|
|
},
|
|
|
|
+ computed:{
|
|
|
|
+ // 进行权限判断一些只有管理员能看
|
|
|
|
+ cardData(){
|
|
|
|
+ return (val)=>{
|
|
|
|
+ let com = val.filter(e=> e.role==0 || (this.role == 1 && e.role == 1) )
|
|
|
|
+ return com
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ role: this.$route.query.role,
|
|
|
|
+
|
|
cardArray: [
|
|
cardArray: [
|
|
- { title: '年度考核', icon: require('../../../assets/icon/liyuan/niandukaohe.svg'), type: 1, to: "/examineL" },
|
|
|
|
- { title: '个人档案', icon: require('../../../assets/icon/liyuan/gerendangan.svg'), type: 1, to: "/userInfoL" },
|
|
|
|
- { title: '教师画像', icon: require('../../../assets/icon/liyuan/jiaoshihuaxiang.svg'), type: 1, to: "/portraitL" },
|
|
|
|
- { title: '课堂观察', icon: require('../../../assets/icon/liyuan/ketangguancha.svg'), type: 1, to: "/classroomObservation" },
|
|
|
|
- { title: '智能表单', icon: require('../../../assets/icon/liyuan/zhinengbiaodan.svg'), type: 1, to: "/test" },
|
|
|
|
|
|
+ { title: '年度考核', icon: require('../../../assets/icon/liyuan/niandukaohe.svg'), type: 1, to: "/examineL",role:0 },
|
|
|
|
+ { title: '个人档案', icon: require('../../../assets/icon/liyuan/gerendangan.svg'), type: 1, to: "/userInfoL",role:0 },
|
|
|
|
+ { title: '教师画像', icon: require('../../../assets/icon/liyuan/jiaoshihuaxiang.svg'), type: 1, to: "/portraitL",role:0 },
|
|
|
|
+ { title: '课堂观察', icon: require('../../../assets/icon/liyuan/ketangguancha.svg'), type: 1, to: "/classroomObservation",role:0 },
|
|
|
|
+ { title: '智能表单', icon: require('../../../assets/icon/liyuan/zhinengbiaodan.svg'), type: 1, to: "/test",role:1 },
|
|
]
|
|
]
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -33,8 +44,9 @@ export default {
|
|
.teacherDevelop{
|
|
.teacherDevelop{
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
- padding: 40px;
|
|
|
|
|
|
+ padding: 40px 90px;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
|
+ background: #FAFAFA;
|
|
}
|
|
}
|
|
|
|
|
|
.cardBox{
|
|
.cardBox{
|