保誠-保戶業務員媒合平台
Mila
2021-11-16 3477e304dd54aa4bba6185a4345f2e032483a9bd
PAMapp/components/Client/ClientCard.vue
@@ -51,7 +51,7 @@
                <p>姓名:{{client.name}}</p>
                <p>電話:{{client.phone}}</p>
                <p>Email:{{client.email}}</p>
                <p>性別:{{client.gender === 'male' ? '男性' : '女性'}}</p>
                <p>性別:{{gender}}</p>
                <p>年齡:{{client.age}}</p>
                <p>職業:{{client.job}}</p>
                <p>需求:{{client.requirement.replace(',', '、')}}</p>
@@ -89,8 +89,15 @@
        return this.client.requirement.split(',');
    }
    get gender() {
        if (this.client.gender) {
            return this.client.gender === 'male' ? '男性' : '女性';
        }
        return ''
    }
    get hopeContactTime() {
        const contactList = this.client.hopeContactTime.split("'").map(item => item.slice(0, item.length - 1));
        const contactList = this.client.hopeContactTime.split("'").map(item => item.slice(0, item.length));
        return contactList.filter(item => !!item)
    }
@@ -114,7 +121,7 @@
    }
    markAppointment() {
        markAsContact(this.client.id).then(res => console.log(res))
        markAsContact(this.client.id).then(res => this.$router.go(0))
    }
}