Browse Source

6.18页面样式修改

name 6 years ago
parent
commit
c84ce2b55c

+ 5 - 5
src/components/SuperComponent.vue

@@ -54,11 +54,11 @@ export default {
     name: "批改老师薪酬表",
     href: "CheckTeacherPay",
   },
-          // {
-          //   id: "4",
-          //   name: "作业回收站",
-          //   href: "HomeworkRecycle",
-          // },
+          {
+            id: "4",
+            name: "作业回收站",
+            href: "HomeworkRecycle",
+          },
  ],
       checkindex:0
     };

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

@@ -249,9 +249,11 @@
         this.applyTeacherList.list = (res => {
           const d = []
           for (let i in res) {
+            var arr = [];
+            arr = res[i].period.split(',')
             d.push( {
               gradeList: this.gradeBag(i),
-              periodList: res[i].period.split(','),
+              periodList: arr,
               imgUrl: res[i].imgUrl,
               name: res[i].name,
               school:res[i].school,

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

@@ -1107,6 +1107,7 @@ export default {
       this.$store.dispatch("GetTeacherDetail", {
         teacherId: v.teacherId
       });
+      console.log(v.teacherId,this.GetTeacherDetail)
       var arr = this.GetTeacherDetail.grade.split(",");
       this.arrPeriod = this.GetTeacherDetail.period.split(",");
       console.log(this.arrPeriod)

+ 11 - 19
src/pages/super/SuperAdmin.vue

@@ -198,7 +198,7 @@
 
       isShow(str,res){
         let _this = this;
-        // console.log(str,res)
+        console.log(str,res)
         if (str == 1){
           _this.hiddenModel = true;
           _this.isPigai = false;
@@ -250,28 +250,20 @@
         this.$store.dispatch("GetManagerDetail", {
           managerId: str
         });
-        var arr = [];
-        if (this.getManagerDetail.grade) {
-           arr = this.getManagerDetail.grade.split(',');
-        } else {
-           arr = []
-        }
-        if (this.getManagerDetail.period) {
-          this.arrPeriod = this.getManagerDetail.period.split(';');
-        } else {
-          this.arrPeriod = [];
-        }
+        console.log(this.getManagerDetail)
+        var arr = this.getManagerDetail.grade.split(",");
+        this.arrPeriod = this.getManagerDetail.period.split(",");
+        console.log(this.arrPeriod)
         var arrList = [];
         for (var i in arr) {
-          if (arr[i] == '一年级' || arr[i] == '二年级') {
-            arrList.push('1-2年级')
-          } else if (arr[i] == '三年级' || arr[i] == "四年级") {
-            arrList.push('3-4年级')
-          } else if (arr[i] == '五年级' || arr[i] == "六年级") {
-            arrList.push('5-6年级')
+          if (arr[i] == "一年级" || arr[i] == "二年级") {
+            arrList.push("1-2年级");
+          } else if (arr[i] == "三年级" || arr[i] == "四年级") {
+            arrList.push("3-4年级");
+          } else if (arr[i] == "五年级" || arr[i] == "六年级") {
+            arrList.push("5-6年级");
           }
         }
-        console.log(this.arrPeriod)
         this.arrGrade = this.uniq(arrList);
       },
       //校区管理员降级

+ 1 - 1
src/store/modules/user.js

@@ -25,7 +25,7 @@ const user = {
     GetTeacherDetail:[],
     GetStudentDetail:[],
     getManagerList:[],
-    getManagerDetail:{},
+    getManagerDetail:[],
     applyTeacherList:[],
     getTeacherSalaryList:[],
     getTeacherIdStatus:"",