From 33d0d51a799302ebc3ff47b86dbce4c1912abd22 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期二, 30 十一月 2021 10:10:43 +0800 Subject: [PATCH] [update] 【todo 131218】嚴選配對 與 快速篩選 的滿意度評分皆改成 列出指定滿意度評分以上的顧問 --- PAMapp/components/Consultant/ConsultantCard.vue | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index c5ac775..92bb8ef 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -46,6 +46,7 @@ <Ui-Dialog :isVisible.sync="isVisibleDialog" :width="width" + class="pam-myDemand-dialog" > <div v-if="appointmentDetail"> <h5 class="subTitle text--center mb-30">������</h5> @@ -57,11 +58,11 @@ <p>�批嚗{gender}}</p> <p>撟湧翩嚗{appointmentDetail.age}}</p> <p>�璆哨�{appointmentDetail.job}}</p> - <p>��瘙�{appointmentDetail.requirement.replace(',', '��')}}</p> + <p>��瘙�{appointmentDetail.requirement.split(',').join('��')}}</p> <p v-for="(item, index) in hopeContactTime" :key="index" - >��蝯⊥�挾{{index + 1 | formatNumber}}嚗{item}}</p> + >��蝯⊥�挾{{index + 1 | formatNumber}}嚗{ item | formatHopeContactTime }}</p> </div> </div> </Ui-Dialog> @@ -82,6 +83,15 @@ const upperNumber = ['�', '銝�', '鈭�', '銝�', '���', '鈭�', '�', '銝�', '�', '銋�', '���'] return upperNumber[index]; } + }, + formatHopeContactTime(item: string): string { + if (item) { + const [hopeDay, hopeTime] = item.split('��'); + const day = hopeDay.split(',').length > 6 ? '銝����' : hopeDay; + const time = hopeTime.split(',').length > 3 ? '銝����' : hopeTime; + return `${day}��${time}`; + } + return ''; } } }) @@ -139,7 +149,7 @@ get hopeContactTime() { const contactList = this.appointmentDetail.hopeContactTime .split("'").map(item => item.slice(0, item.length)); - return contactList.filter(item => !!item) + return contactList.filter(item => !!item && item !== ",") } reserveCommunication() { const contactStatus = this.agentInfo.contactStatus; @@ -253,6 +263,8 @@ .dialogInfo { font-size: 20px; + overflow-y:scroll; + height: 400px; } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0