Kaynağa Gözat

修改学生评价样式判断

11wqe1 1 yıl önce
ebeveyn
işleme
3f84bbb62c
2 değiştirilmiş dosya ile 16 ekleme ve 14 silme
  1. 13 13
      src/views/eva/index.vue
  2. 3 1
      src/views/eva/studentDetail.vue

+ 13 - 13
src/views/eva/index.vue

@@ -126,27 +126,27 @@ export default {
     getData() {
       const id = this.$store.state.user.userinfo.organizeid
       select_techerAllClass({ cid: id }).then(res => {
-        console.log('获取老师所管理班级学生', res)
+        // console.log('获取老师所管理班级学生', res)
         this.classLists = res[0]
         // 调用一次,将导航栏数据展示出来
         this.cutPage(this.classLists[0].id)
       })
     }
   },
-  beforeRouteEnter(to, from, next) {
-    document.addEventListener(
-      'touchmove',
-      function(event) {
-        event.preventDefault()
-      },
-      false
-    )
-    next(vm => {})
-  },
+  // beforeRouteEnter(to, from, next) {
+  //   document.addEventListener(
+  //     'touchmove',
+  //     function(event) {
+  //       event.preventDefault()
+  //     },
+  //     false
+  //   )
+  //   next(vm => {})
+  // },
   mounted() {},
   created() {
     this.getData()
-    console.log('state', this.$store.state)
+    // console.log('state', this.$store.state)
   }
 }
 </script>
@@ -181,7 +181,7 @@ export default {
   height: calc(100vh - 125px);
   // background-color: #4a8efc;
   box-sizing: border-box;
-  margin-top: 20px;
+  // margin-top: 20px;
   min-height: 300px;
   overflow-y: auto;
   overflow-x: hidden;

+ 3 - 1
src/views/eva/studentDetail.vue

@@ -13,10 +13,12 @@
           <!-- <van-dropdown-menu>
             <van-dropdown-item @change="handleUpdateStudent" v-model="studentInfo.userid" :options="stuDetailList" />
           </van-dropdown-menu> -->
-          <div class="userName" @click="cutStuShowBtn">
+          <div class="userName">
             {{ studentInfo.name }}
             <img
               style="position: absolute;right: 0px;top: 50%;width: 25px; transform: translate(0,-50%);"
+              v-if="this.stuList.length"
+              @click="cutStuShowBtn"
               src="../../assets/images/eva/arrow.png"
               alt=""
             />