|
@@ -7,9 +7,9 @@
|
|
|
<el-col :span="3" v-for="(item, index) of menuData" :key="item.id"
|
|
|
@click.native="secondNavClick(item,index)" style="text-align: center">
|
|
|
<span class="lineStyle" :class="{active:index == checkindex,menu_item:true}">{{item.name}}</span>
|
|
|
- <div class="box" v-if="index==1||index==3">
|
|
|
- <span class="box-text">{{index==1?2+'项任务':3+'份作业'}}</span>
|
|
|
- </div>
|
|
|
+ <!--<div class="box" v-if="index==1||index==3">-->
|
|
|
+ <!--<span class="box-text">{{index==1?2+'项任务':3+'份作业'}}</span>-->
|
|
|
+ <!--</div>-->
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="4" class="aside-right">
|
|
@@ -52,13 +52,13 @@ export default {
|
|
|
name: "批改老师薪酬表",
|
|
|
href: "CheckTeacherPay",
|
|
|
},
|
|
|
- // {
|
|
|
- // id: "4",
|
|
|
- // name: "作业回收站",
|
|
|
- // href: "HomeworkRecycle",
|
|
|
- // },
|
|
|
+ {
|
|
|
+ id: "4",
|
|
|
+ name: "作业回收站",
|
|
|
+ href: "HomeworkRecycle",
|
|
|
+ },
|
|
|
],
|
|
|
- checkindex: 0
|
|
|
+ checkindex:''
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -73,8 +73,21 @@ export default {
|
|
|
// this.menuData = JSON.parse(JSON.stringify(this.navsData));
|
|
|
// },
|
|
|
secondNavClick(val, index) {
|
|
|
- this.$router.push("/super/" + val.href);
|
|
|
- this.checkindex = index;
|
|
|
+
|
|
|
+ sessionStorage.setItem('tabIndex',index);
|
|
|
+ this.checkindex = sessionStorage.getItem('tabIndex');
|
|
|
+ console.log(sessionStorage.getItem('tabIndex'))
|
|
|
+ if (sessionStorage.getItem('tabIndex') == 0){
|
|
|
+ this.$router.push("/super/" + 'SuperAdmin');
|
|
|
+ } else if (sessionStorage.getItem('tabIndex') == 1){
|
|
|
+ this.$router.push("/super/" + 'CheckTeacherAudit');
|
|
|
+ } else if (sessionStorage.getItem('tabIndex') == 2){
|
|
|
+ this.$router.push("/super/" + 'CheckTeacherPay');
|
|
|
+ } else if (sessionStorage.getItem('tabIndex') == 3){
|
|
|
+ this.$router.push("/super/" + 'HomeworkRecycle');
|
|
|
+ }
|
|
|
+ // this.$router.push("/super/" + val.href);
|
|
|
+ // this.checkindex = index;
|
|
|
},
|
|
|
// 账号管理、退出登录
|
|
|
Loginout() {
|
|
@@ -99,6 +112,7 @@ export default {
|
|
|
...mapGetters(['name', 'avatar','roles'])
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.checkindex = sessionStorage.getItem('tabIndex');
|
|
|
// this.initNav();
|
|
|
}
|
|
|
};
|