mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 09:26:45 +08:00
课程清除筛选
This commit is contained in:
@@ -198,30 +198,17 @@
|
||||
},
|
||||
methods:{
|
||||
clswitch(){
|
||||
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('选中');
|
||||
if(JSON.stringify(this.course.sysType1) !== '{}'){
|
||||
this.clearswitch = true;
|
||||
console.log(this.course,this.filterTags.length)
|
||||
}else if(JSON.stringify(this.course.sysType2) !== '{}'){
|
||||
this.clearswitch = true;
|
||||
}else if(JSON.stringify(this.course.sysType2) !== '{}'){
|
||||
this.clearswitch = true;
|
||||
}else if(this.filterTags.length !== 0 && 3){
|
||||
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(){
|
||||
|
||||
Reference in New Issue
Block a user