保誠-保戶業務員媒合平台
Mila
2021-11-22 bdf9a63772831bdae09b313958e3455df18a44a1
update: 快速篩選: 重新篩選時 api (fastQuery) 傳入參數有誤
修改1個檔案
20 ■■■■ 已變更過的檔案
PAMapp/pages/quickFilter/index.vue 20 ●●●● 修補檔 | 檢視 | 原始 | 究查 | 歷程
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: ''
        }