修改清除筛选

This commit is contained in:
lmj
2022-12-08 10:31:49 +08:00
parent 258cb6d4bf
commit 53e902d1c8

View File

@@ -198,12 +198,30 @@
},
methods:{
clswitch(){
if(this.filterTags.length == 3 || this.filterTags.length == 0){
console.log(this.filterTags.length)
this.clearswitch = false;
}else{
if(this.course.sysType1.filter == true
|| this.course.sysType2.filter == true
|| this.course.sysType3.filter == true
||this.filterTags.length !== 3
|| this.filterTags.length !== 0
){
console.log('选中');
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(){
@@ -428,7 +446,7 @@
this.$emit('submit',this.filterTags,params);
}
console.log(this.filterTags.length,'llll')
// console.log(this.filterTags.length,'llll')
this.clswitch();
}
}