From 05077d8406ca7d1d87717202398301b808d6bd2e Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Thu, 8 Dec 2022 11:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=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 | 29 +++++++------------------- 1 file changed, 8 insertions(+), 21 deletions(-) diff --git a/components/data-filter/data-filter.vue b/components/data-filter/data-filter.vue index 564a549..c10856b 100644 --- a/components/data-filter/data-filter.vue +++ b/components/data-filter/data-filter.vue @@ -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(){