diff --git a/components/data-filter/data-filter.vue b/components/data-filter/data-filter.vue index 6855fd1..564a549 100644 --- a/components/data-filter/data-filter.vue +++ b/components/data-filter/data-filter.vue @@ -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(); } }