qq vor 2 Jahren
Ursprung
Commit
2275fa2be2
2 geänderte Dateien mit 7 neuen und 2 gelöschten Zeilen
  1. 6 1
      src/components/customer/push_err.vue
  2. 1 1
      src/components/customer/topic.vue

+ 6 - 1
src/components/customer/push_err.vue

@@ -393,11 +393,16 @@ export default {
     //班级
     getclass(val){
       var that = this;
-      classes_s({gid:val}).then(res=>{
+      if(val){
+        classes_s({gid:val}).then(res=>{
         if (res.errcode == 0) {
         that.classL = res.data;
         }
       })
+      }else{
+        that.classL = [];
+      }
+      
     },
     getStudent(){
       var that = this;

+ 1 - 1
src/components/customer/topic.vue

@@ -57,7 +57,7 @@
             ></el-input>
           </div>
           <el-button @click="search">搜索</el-button>
-          <div class="reset" @click="is_show = true">
+          <div class="reset" @click="is_show = true" v-if="tid">
             <span class="el-icon-setting"></span> 设置错误率
           </div>
         </div>