Browse Source

6.6-14:47页面样式修改

name 6 years ago
parent
commit
d58aa298e6
2 changed files with 22 additions and 13 deletions
  1. 11 6
      src/pages/home/SchoolManager.vue
  2. 11 7
      src/pages/super/SchoolManager.vue

+ 11 - 6
src/pages/home/SchoolManager.vue

@@ -464,7 +464,7 @@
     </div>
 
     <!-- 无未批改作业 v-if="monitorTeacherList.unCorrectCount==0"-->
-    <div class="no-homework" v-if="isNocheck">
+    <div class="no-homework" v-if="isNocheck" id="noHomework">
         <div>无可分配作业</div>
         <img src="../../assets/img/wu_fen_pei_zuo_ye.png" alt="">
     </div>
@@ -934,18 +934,23 @@ export default {
     },
     // 去分配
     allocation(){
+      var _this = this;
       this.InfoWatch()
       if (this.monitorTeacherList.unCorrectCount == 0){
-          this.isNocheck = true;
-        var time = setTimeout(function () {
-          this.isNocheck = true;
-          clearTimeout(time);
-        }, 1000);
+        _this.isNocheck = true;
+        _this.setTimeoutHomework()
       } else {
         this.isShow(this.monitorTeacherList,2)
       }
 
     },
+    // 定时器
+    setTimeoutHomework(){
+      var noHomework = document.getElementById('noHomework');
+      setTimeout(function () {
+        noHomework.remove()
+      }, 1000);
+    },
     //关闭弹框
     allShowModel(str) {
       let _this = this;

+ 11 - 7
src/pages/super/SchoolManager.vue

@@ -475,7 +475,7 @@
       </div>
     </div>
     <!-- 无未批改作业 v-if="monitorTeacherList.unCorrectCount==0"-->
-    <div class="no-homework" v-if="isNocheck">
+    <div class="no-homework" v-if="isNocheck" id="noHomework">
       <div>无可分配作业</div>
       <img src="../../assets/img/wu_fen_pei_zuo_ye.png" alt="">
     </div>
@@ -1121,19 +1121,23 @@ export default {
     },
     // 去分配
     allocation(){
+      var _this = this;
       this.InfoWatch()
       if (this.monitorTeacherList.unCorrectCount == 0){
-        this.isNocheck = true;
-        var time = setTimeout(function () {
-          console.log('2222')
-          this.isNocheck = true;
-          clearTimeout(time);
-        }, 1000);
+        _this.isNocheck = true;
+        _this.setTimeoutHomework()
       } else {
         this.isShow(this.monitorTeacherList,2)
       }
 
     },
+    // 定时器
+    setTimeoutHomework(){
+      var noHomework = document.getElementById('noHomework');
+      setTimeout(function () {
+        noHomework.remove()
+      }, 1000);
+    },
     //关闭弹框
     allShowModel(str) {
       let _this = this;