Browse Source

6.13页面样式修改

name 6 years ago
parent
commit
e0b61ddf4d

+ 25 - 11
src/components/SuperComponent.vue

@@ -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();
   }
 };

+ 1 - 0
src/pages/super/CheckTeacherAudit.vue

@@ -369,6 +369,7 @@
 
     },
     mounted() {
+      sessionStorage.setItem('tabIndex',1);
       this.SuperApplyTeacherList();
 
       console.log(this.list)

+ 2 - 0
src/pages/super/CheckTeacherPay.vue

@@ -306,6 +306,8 @@
 
     },
     mounted() {
+      sessionStorage.setItem('tabIndex',2);
+      console.log(sessionStorage.getItem('tabIndex'))
      this.GetTeacherSalaryList()
     }
   };

+ 4 - 3
src/pages/super/HomeworkRecycle.vue

@@ -44,7 +44,7 @@
             label="是否有补拍"
             header-align="center"
           >
-            <template slot-scope="">
+            <template slot-scope="scope">
               <span class="allocation">{{scope.row.ownReplenish==1?'有':'无'}}</span>
             </template>
           </el-table-column>
@@ -54,7 +54,7 @@
             header-align="center"
             width="450"
           >
-            <template slot-scope="">
+            <template slot-scope="scope">
                 <span class="allocation">去分配</span>
             </template>
           </el-table-column>
@@ -228,7 +228,8 @@
 
     },
     mounted() {
-      // this.HomeworkRecoveryList()
+      sessionStorage.setItem('tabIndex',3);
+      this.HomeworkRecoveryList()
     }
   };
 </script>