From 176b380f392efab0a84dd79560dca22e8053d0e4 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期一, 27 十二月 2021 12:32:35 +0800 Subject: [PATCH] refactor component: careerSelect --- PAMapp/components/Client/ClientCard.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/PAMapp/components/Client/ClientCard.vue b/PAMapp/components/Client/ClientCard.vue index e3548a1..aff2a7e 100644 --- a/PAMapp/components/Client/ClientCard.vue +++ b/PAMapp/components/Client/ClientCard.vue @@ -175,21 +175,21 @@ } } - get latestUpdateTime() { + get displayTime(): string { if (this.isReserved) { - return this.client.consultantReadTime ? this.client.consultantReadTime : this.client.appointmentDate; + return this.client.appointmentDate; } else { - return this.client.contactTime; + return this.client.lastModifiedDate; } } get time() { - const formatDate = (this.$options.filters as any).formatDate(this.latestUpdateTime); + const formatDate = (this.$options.filters as any).formatDate(this.displayTime); return formatDate.split(' ')[1] } get date() { - const formatDate = (this.$options.filters as any).formatDate(this.latestUpdateTime); + const formatDate = (this.$options.filters as any).formatDate(this.displayTime); return formatDate.split(' ')[0]; } -- Gitblit v1.8.0