课程清除筛选

This commit is contained in:
lmj
2022-12-08 11:53:50 +08:00
parent c51797beee
commit 05077d8406

View File

@@ -198,30 +198,17 @@
}, },
methods:{ methods:{
clswitch(){ clswitch(){
if(this.course.sysType1.filter == true if(JSON.stringify(this.course.sysType1) !== '{}'){
|| this.course.sysType2.filter == true this.clearswitch = true;
|| this.course.sysType3.filter == true console.log(this.course,this.filterTags.length)
||this.filterTags.length !== 3 }else if(JSON.stringify(this.course.sysType2) !== '{}'){
|| this.filterTags.length !== 0 this.clearswitch = true;
){ }else if(JSON.stringify(this.course.sysType2) !== '{}'){
console.log('选中'); this.clearswitch = true;
}else if(this.filterTags.length !== 0 && 3){
this.clearswitch = true; this.clearswitch = true;
}else{
this.clearswitch = false;
console.log('未选中');
} }
// if(this.filterTags.length == 3 || this.filterTags.length == 0){
// this.clearswitch = false;
// }else if(this.course.sysType1 == '' || this.course.sysType2 == '' || this.course.sysType3 == ''){
// console.log(this.course.sysType1,this.course.sysType2,this.course.sysType3)
// this.clearswitch = false;
// }
// else{
// this.clearswitch = true;
// }
}, },
// 清除筛选 // 清除筛选
clearsf(){ clearsf(){