qq 2 anni fa
parent
commit
2275fa2be2

+ 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>