@@ -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(){
@@ -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> 设置错误率