From 5e17ffe4ac5922abec6114d7da4c39f50d6768a6 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期五, 14 一月 2022 12:45:15 +0800 Subject: [PATCH] update: 顧問-預約單列表調整為三個頁面籤的邏輯調整 --- PAMapp/pages/myAppointmentList/closedList.vue | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PAMapp/pages/myAppointmentList/onProgressList.vue b/PAMapp/pages/myAppointmentList/closedList.vue similarity index 90% rename from PAMapp/pages/myAppointmentList/onProgressList.vue rename to PAMapp/pages/myAppointmentList/closedList.vue index e4de5e7..16cd405 100644 --- a/PAMapp/pages/myAppointmentList/onProgressList.vue +++ b/PAMapp/pages/myAppointmentList/closedList.vue @@ -16,7 +16,7 @@ <ClientList :clients="pageList" - :title="'contactedList'" + :title="'closedList'" ></ClientList> <UiPagination @@ -31,6 +31,7 @@ import { Vue, Component, Watch, State, namespace } from 'nuxt-property-decorator'; import { Appointment } from '~/shared/models/appointment.model'; +import { ContactStatus } from '~/shared/models/enum/contact-status'; const localStorage = namespace('localStorage'); @@ -48,6 +49,7 @@ keyWord : string = ''; pageList : Appointment[] = []; currentPage : number = 1; + contactStatus= ContactStatus; ////////////////////////////////////////////////////////////////////// @@ -60,7 +62,7 @@ @Watch('myAppointmentList') onMyAppointmentListChange() { this.contactedList = (this.myAppointmentList || []) - .filter(item => item.communicateStatus === 'contacted') + .filter(item => item.communicateStatus === this.contactStatus.DONE || item.communicateStatus === this.contactStatus.CLOSE) .map((item) => ({...item, sortTime: new Date(item.contactTime)})) .sort((prevItem, nextItem) => +nextItem.sortTime - +prevItem.sortTime); this.filterList = this.contactedList; -- Gitblit v1.8.0