From bdf9a63772831bdae09b313958e3455df18a44a1 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期一, 22 十一月 2021 17:59:10 +0800 Subject: [PATCH] update: 快速篩選: 重新篩選時 api (fastQuery) 傳入參數有誤 --- PAMapp/pages/quickFilter/index.vue | 20 ++++++++++---------- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/PAMapp/pages/quickFilter/index.vue b/PAMapp/pages/quickFilter/index.vue index 57bc9bd..3ad3b79 100644 --- a/PAMapp/pages/quickFilter/index.vue +++ b/PAMapp/pages/quickFilter/index.vue @@ -111,24 +111,24 @@ // } ]; - get gender() { + gender(): string { const filter = this.confirmItem.filter(item => item.option === 'gender').map(i => i.value); return filter.length === 0 ? '' : filter[0]; } - get avgScore() { + avgScore(): number { const filter = this.confirmItem.filter(item => item.option === 'avgScore').map(i => i.value); return filter.length === 0 ? '' : filter[0]; } - get communicationStyles() { + communicationStyles(): string[] { return this.confirmItem.filter(item => item.option === 'communicationStyles').map(i => i.value); } isActive(name: string) { - return name === 'gender' && !!this.gender - || name === 'avgScore' && !!this.avgScore - || name === 'communicationStyles' && !!this.communicationStyles.length + return name === 'gender' && !!this.gender() + || name === 'avgScore' && !!this.avgScore() + || name === 'communicationStyles' && !!this.communicationStyles().length } openPopUp(question: QuestionOption) { @@ -141,7 +141,7 @@ this.confirmItem.length > 0 ? this.getRecommendList() : this.consultantList = []; } - confirm(event: any) { + confirm(event: Selected) { this.setConfirmData(event); this.confirmItem.length > 0 ? this.getRecommendList() : this.consultantList = []; this.isOpenQuestionPopUp = false; @@ -178,9 +178,9 @@ getRecommendList() { const data: FastQueryParams = { - gender: this.gender, - communicationStyles: this.communicationStyles, - avgScore: this.avgScore, + gender: this.gender(), + communicationStyles: this.communicationStyles(), + avgScore: this.avgScore(), status: '' } -- Gitblit v1.8.0