mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
课程清除筛选
This commit is contained in:
@@ -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(){
|
||||||
|
|||||||
Reference in New Issue
Block a user