Browse Source

6.20-15:45页面样式修改

name 6 years ago
parent
commit
8a0e3a63b3

+ 9 - 4
src/components/SuperComponent.vue

@@ -1,8 +1,8 @@
 <template>
 <template>
   <el-col :span="24" class="">
   <el-col :span="24" class="">
-      <el-col :span="2" :offset="2">
+      <div class="logo-header">
        <img class="logoImg" src="../assets/img/log.png"/>
        <img class="logoImg" src="../assets/img/log.png"/>
-      </el-col>
+      </div>
     <!--v-show="roles.indexOf(item.id) >= 0"-->
     <!--v-show="roles.indexOf(item.id) >= 0"-->
       <el-col :span="3"   v-for="(item, index) of menuData" :key="item.id"
       <el-col :span="3"   v-for="(item, index) of menuData" :key="item.id"
       @click.native="secondNavClick(item,index)" style="text-align: center">
       @click.native="secondNavClick(item,index)" style="text-align: center">
@@ -125,7 +125,7 @@ export default {
 /*}*/
 /*}*/
 .menu_item {
 .menu_item {
   cursor: pointer;
   cursor: pointer;
-  color:#999999; 
+  color:#999999;
   font-size: 9px;
   font-size: 9px;
   font-family: serif;
   font-family: serif;
   box-sizing:border-box;
   box-sizing:border-box;
@@ -145,6 +145,11 @@ export default {
 .menu_item+.menu_item {
 .menu_item+.menu_item {
   border-left: 1px solid #ffffff;
   border-left: 1px solid #ffffff;
 }
 }
+.logo-header{
+  display: inline-block;
+  float: left;
+  margin-left: 8.3%;
+}
 .logoImg{
 .logoImg{
   width:136px;
   width:136px;
   height:52px;
   height:52px;
@@ -168,7 +173,7 @@ export default {
   display: inline-block;
   display: inline-block;
 }
 }
 .out{
 .out{
-  margin-left: 40px;
+  margin-left: 2%;
   font-size: 14px;
   font-size: 14px;
   color: #666666;
   color: #666666;
   display: inline-block;
   display: inline-block;

+ 20 - 8
src/pages/super/CheckTeacherAudit.vue

@@ -243,10 +243,19 @@
 
 
       };
       };
     },
     },
-    watch: {},
+    watch: {
+      InfoTeacherstatues(val, oldVal) {
+        //普通的watch监听
+        this.pesiorFun();
+      },
+      GetTeacherstatues(val, oldVal) {
+        //普通的watch监听
+        this.SuperApplyTeacherList()
+      }
+    },
     //
     //
     computed: {
     computed: {
-      ...mapGetters(["getUser","applyTeacherList"])
+      ...mapGetters(["getUser","applyTeacherList","InfoTeacherstatues","GetTeacherstatues"])
     },
     },
     methods: {
     methods: {
       ...mapActions(["setUser"]),
       ...mapActions(["setUser"]),
@@ -287,7 +296,10 @@
           pageNo: this.filters.pageNo,
           pageNo: this.filters.pageNo,
           pageSize: this.filters.pageSize
           pageSize: this.filters.pageSize
         });
         });
-        console.log(this.applyTeacherList.list)
+
+      },
+      async pesiorFun(){
+        console.log(this.applyTeacherList)
         this.applyTeacherList.list = (res => {
         this.applyTeacherList.list = (res => {
           const d = []
           const d = []
           for (let i in res) {
           for (let i in res) {
@@ -305,7 +317,7 @@
           }
           }
           return d
           return d
         })(this.applyTeacherList.list)
         })(this.applyTeacherList.list)
-        this.list = this.applyTeacherList.list;
+        this.list = this.applyTeacherList.list || [];
         console.log(this.list)
         console.log(this.list)
       },
       },
       //申请审批操作
       //申请审批操作
@@ -317,10 +329,10 @@
           reason:this.filters.textareaDesc
           reason:this.filters.textareaDesc
         });
         });
         this.allShowModel(this.operate);
         this.allShowModel(this.operate);
-        setTimeout(function () {
-          // _that.SuperApplyTeacherList()
-          window.location.reload();
-        }, 1000);
+        // setTimeout(function () {
+        //   // _that.SuperApplyTeacherList()
+        //   window.location.reload();
+        // }, 1000);
       },
       },
       //时间封装
       //时间封装
       formatDate: function () {
       formatDate: function () {

+ 30 - 10
src/pages/super/SuperAdmin.vue

@@ -7,10 +7,18 @@
       <!--数据监控-->
       <!--数据监控-->
       <el-col :span="20" class="main" :offset="2">
       <el-col :span="20" class="main" :offset="2">
         <el-row :gutter="20" class="main-header">
         <el-row :gutter="20" class="main-header">
-          <el-col :span="3"><div class="main-header-item" >注册老师数:{{getManagerList.registerTeacherCount}}人</div></el-col>
-          <el-col :span="3"><div class="main-header-item">活跃老师数:{{getManagerList.activeTeacherCount}}人</div></el-col>
-          <el-col :span="4"><div class="main-header-item">注册用户数:{{getManagerList.registerUserCount}}人</div></el-col>
-          <el-col :span="4"><div class="main-header-item">活跃用户数:{{getManagerList.activeUserCount}}人</div></el-col>
+          <!--<el-col :span="3">-->
+            <div class="main-header-item" >注册老师数:{{getManagerList.registerTeacherCount}}人</div>
+          <!--</el-col>-->
+          <!--<el-col :span="3">-->
+            <div class="main-header-item">活跃老师数:{{getManagerList.activeTeacherCount}}人</div>
+          <!--</el-col>-->
+          <!--<el-col :span="4">-->
+            <div class="main-header-item">注册用户数:{{getManagerList.registerUserCount}}人</div>
+          <!--</el-col>-->
+          <!--<el-col :span="4">-->
+            <div class="main-header-item">活跃用户数:{{getManagerList.activeUserCount}}人</div>
+          <!--</el-col>-->
         </el-row>
         </el-row>
         <el-table
         <el-table
           :data="getManagerList.list"
           :data="getManagerList.list"
@@ -191,9 +199,14 @@
     },
     },
      created() {
      created() {
   },
   },
-    watch: {},
+    watch: {
+      InfoTeacherstatues(val, oldVal) {
+        //普通的watch监听
+        this.teacherDetailFun();
+      },
+    },
     computed: {
     computed: {
-      ...mapGetters(["getUser","getManagerList","getManagerDetail"])
+      ...mapGetters(["getUser","getManagerList","getManagerDetail","InfoTeacherstatues"])
     },
     },
     methods: {
     methods: {
       ...mapActions(["setUser"]),
       ...mapActions(["setUser"]),
@@ -252,6 +265,8 @@
         this.$store.dispatch("GetManagerDetail", {
         this.$store.dispatch("GetManagerDetail", {
           managerId: str
           managerId: str
         });
         });
+      },
+      async teacherDetailFun(){
         console.log(this.getManagerDetail)
         console.log(this.getManagerDetail)
         var arr = this.getManagerDetail.grade.split(",");
         var arr = this.getManagerDetail.grade.split(",");
         this.arrPeriod = this.getManagerDetail.period.split(",");
         this.arrPeriod = this.getManagerDetail.period.split(",");
@@ -266,7 +281,7 @@
             arrList.push("5-6年级");
             arrList.push("5-6年级");
           }
           }
         }
         }
-        this.arrGrade = this.uniq(arrList);
+        this.arrGrade = this.uniq(arrList) || [];
       },
       },
       //校区管理员降级
       //校区管理员降级
       async Downgrade() {
       async Downgrade() {
@@ -381,12 +396,17 @@
   }
   }
   .main-items{
   .main-items{
     color: #393939;
     color: #393939;
-    text-align: center;
+    /*text-align: center;*/
     line-height: 80px;
     line-height: 80px;
   }
   }
   .main-header-item{
   .main-header-item{
     font-size: 16px;
     font-size: 16px;
     color: #7E7E7E;
     color: #7E7E7E;
+    text-overflow: ellipsis;
+    /*vertical-align: middle;*/
+    text-align: center;
+    display: inline-block;
+    width: 20%;
   }
   }
 
 
   .input-with-select .el-input-group__prepend {
   .input-with-select .el-input-group__prepend {
@@ -509,7 +529,7 @@
     padding: 40px 0 50px 0;
     padding: 40px 0 50px 0;
   }
   }
   .scope-name{
   .scope-name{
-    margin-left: 13px;
+    margin-left: 5%;
     color: #393939;
     color: #393939;
     font-size: 13px;
     font-size: 13px;
   }
   }
@@ -523,7 +543,7 @@
     margin-top: 15px;
     margin-top: 15px;
   }
   }
   .scope-list{
   .scope-list{
-    margin-left: 18px;
+    margin-left: 5%;
     text-align: left;
     text-align: left;
   }
   }
   .noBorderBottom{
   .noBorderBottom{

+ 1 - 0
src/store/getters.js

@@ -31,5 +31,6 @@ const getters = {
   errorDetailList :state => state.user.errorDetailList || {},
   errorDetailList :state => state.user.errorDetailList || {},
   pictureIndex :state => state.user.pictureIndex,
   pictureIndex :state => state.user.pictureIndex,
   InfoTeacherstatues :state => state.user.InfoTeacherstatues,
   InfoTeacherstatues :state => state.user.InfoTeacherstatues,
+  GetTeacherstatues :state => state.user.GetTeacherstatues,
 }
 }
 export default getters
 export default getters

+ 19 - 5
src/store/modules/user.js

@@ -37,7 +37,8 @@ const user = {
     errorWarningList:[],
     errorWarningList:[],
     errorDetailList:[],
     errorDetailList:[],
     pictureIndex:0,
     pictureIndex:0,
-    InfoTeacherstatues:""
+    InfoTeacherstatues:"",
+    GetTeacherstatues:"",
   },
   },
 
 
   mutations: {
   mutations: {
@@ -116,6 +117,9 @@ const user = {
     SET_GET_SUCCESS_TEACHERINFO_STUS:(state,InfoTeacherstatues) => {
     SET_GET_SUCCESS_TEACHERINFO_STUS:(state,InfoTeacherstatues) => {
       state.InfoTeacherstatues = InfoTeacherstatues
       state.InfoTeacherstatues = InfoTeacherstatues
     },
     },
+    SET_GET_SUCCESS_MANAGER_DETAIL:(state,GetTeacherstatues) => {
+      state.GetTeacherstatues = GetTeacherstatues
+    },
     SET_ERROR_WARING:(state,errorWarningList) => {
     SET_ERROR_WARING:(state,errorWarningList) => {
       state.errorWarningList = errorWarningList
       state.errorWarningList = errorWarningList
     },
     },
@@ -421,6 +425,8 @@ const user = {
       return new Promise((resolve, reject) => {
       return new Promise((resolve, reject) => {
         axios.post(GetManagerDetail, data).then(response => {
         axios.post(GetManagerDetail, data).then(response => {
           const data = response.data || {}
           const data = response.data || {}
+          // commit('SET_GET_SUCCESS_MANAGER_DETAIL',new Date());
+          commit('SET_GET_SUCCESS_TEACHERINFO_STUS',new Date());
           commit('SET_MANAGER_DETAIL', data);
           commit('SET_MANAGER_DETAIL', data);
           resolve(response)
           resolve(response)
         }).catch(error => {
         }).catch(error => {
@@ -524,10 +530,17 @@ const user = {
     SuperApplyTeacherList({ commit, state }, data) {
     SuperApplyTeacherList({ commit, state }, data) {
       return new Promise((resolve, reject) => {
       return new Promise((resolve, reject) => {
         axios.post(SuperApplyTeacherList, data).then(response => {
         axios.post(SuperApplyTeacherList, data).then(response => {
-          const data = response.data || { }
-          commit('SET_APPLY_TEACHER_LIST', data);
-          // debugger
-          // console.log(data)
+          const data = response || {}
+          if (data.code === "999"){
+            commit('SET_APPLY_TEACHER_LIST', data.data);
+            commit('SET_GET_SUCCESS_TEACHERINFO_STUS',new Date());
+          }
+          else {
+            Message.error("出错了")
+          }
+          // const data = response.data || { }
+          // commit('SET_APPLY_TEACHER_LIST', data);
+
           resolve(response)
           resolve(response)
         }).catch(error => {
         }).catch(error => {
           reject(error)
           reject(error)
@@ -543,6 +556,7 @@ const user = {
           // debugger
           // debugger
           const data = response || {}
           const data = response || {}
           if (data.code === "999"){
           if (data.code === "999"){
+            commit('SET_GET_SUCCESS_MANAGER_DETAIL',new Date());
             commit('SET_CLOSE_OR_OPENID', new Date());
             commit('SET_CLOSE_OR_OPENID', new Date());
             Message.success(data.msg)
             Message.success(data.msg)
           }
           }