From 53e902d1c8aa3f173fb89bab2252e987c17e7c97 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Thu, 8 Dec 2022 10:31:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=85=E9=99=A4=E7=AD=9B?= =?UTF-8?q?=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/data-filter/data-filter.vue | 28 +++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) 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(); } }