From 6054289ebe70ade6a245f6d40e48a84f9e6e0560 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期一, 31 七月 2023 14:49:02 +0800 Subject: [PATCH] Update: 更新諮詢方式相關 API 使用方式 --- PAMapp/components/Consultant/ConsultantCard.vue | 2 +- PAMapp/pages/index.vue | 2 +- PAMapp/components/Client/ClientCard.vue | 2 +- PAMapp/plugins/filters/consult-type.filter.ts | 4 ++-- PAMapp/shared/models/appointment.model.ts | 2 ++ 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/PAMapp/components/Client/ClientCard.vue b/PAMapp/components/Client/ClientCard.vue index 9bcdfe7..214dda3 100644 --- a/PAMapp/components/Client/ClientCard.vue +++ b/PAMapp/components/Client/ClientCard.vue @@ -118,7 +118,7 @@ <p>�批嚗�<span>{{gender}}</span></p> <p>撟湧翩嚗�<span>{{client.age | toAgeLabel }}</span></p> <p>�璆哨��<span>{{client.job}}</span></p> - <p>隢株岷�撘��<span>{{client.consultationMethod }}</span></p> + <p>隢株岷�撘��<span>{{client.consultationMethod | toConsulType }}</span></p> <p>��瘙��<span>{{ client.requirement ? client.requirement.split(',').join('��') : '--' }}</span></p> <p v-for="(item, index) in hopeContactTime" :key="index" diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index 68d697a..f034cbd 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -76,7 +76,7 @@ <p>�批嚗{gender}}</p> <p>撟湧翩嚗{appointmentDetail.age | toAgeLabel }}</p> <p>�璆哨�{appointmentDetail.job}}</p> - <p>隢株岷�撘�{appointmentDetail.consultationMethod }}</p> + <p>隢株岷�撘�{appointmentDetail.consultationMethod | toConsulType }}</p> <p>��瘙�{appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('��') : '--'}}</p> <p v-for="(item, index) in hopeContactTime" diff --git a/PAMapp/pages/index.vue b/PAMapp/pages/index.vue index e8c6eb0..d2dc803 100644 --- a/PAMapp/pages/index.vue +++ b/PAMapp/pages/index.vue @@ -59,7 +59,7 @@ <p>�批嚗{gender}}</p> <p>撟湧翩嚗{appointmentDetail.age | toAgeLabel }}</p> <p>�璆哨�{appointmentDetail.job}}</p> - <p>隢株岷�撘�{appointmentDetail.consultationMethod }}</p> + <p>隢株岷�撘�{appointmentDetail.consultationMethod | toConsulType }}</p> <p>��瘙�{ appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('��') : '--'}}</p> <p v-for="(item, index) in hopeContactTime" diff --git a/PAMapp/plugins/filters/consult-type.filter.ts b/PAMapp/plugins/filters/consult-type.filter.ts index 8eb65ab..86f2a9c 100644 --- a/PAMapp/plugins/filters/consult-type.filter.ts +++ b/PAMapp/plugins/filters/consult-type.filter.ts @@ -7,8 +7,8 @@ }; const consultantTypeLabel = { - 'ONLINE': '蝺��', - 'OFFLINE': '蝺��', + 'online': '蝺��', + 'offline': '蝺��', }; return consultantTypeLabel[value]; diff --git a/PAMapp/shared/models/appointment.model.ts b/PAMapp/shared/models/appointment.model.ts index e98d5bf..3d6f5ad 100644 --- a/PAMapp/shared/models/appointment.model.ts +++ b/PAMapp/shared/models/appointment.model.ts @@ -98,6 +98,7 @@ job : string; phone : string; requirement : string; + consultationMethod: string; } export interface EditAppointmentParams { @@ -111,6 +112,7 @@ otherRequirement: null; phone : string; requirement : string; + consultationMethod: string; } export interface AppointmentRequests { -- Gitblit v1.8.0