From 04b25b25c477309298e1d7433ddb14bb8e57778d Mon Sep 17 00:00:00 2001
From: charlie <charlie@lvguanqingdeMacBook-Pro.local>
Date: 星期六, 22 一月 2022 12:17:58 +0800
Subject: [PATCH] Fixed: 修正預約資訊中的性別icon顯示判斷

---
 PAMapp/components/Interview/InterviewRecordCard.vue |   19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/PAMapp/components/Interview/InterviewRecordCard.vue b/PAMapp/components/Interview/InterviewRecordCard.vue
index 34f1d28..a02c7a6 100644
--- a/PAMapp/components/Interview/InterviewRecordCard.vue
+++ b/PAMapp/components/Interview/InterviewRecordCard.vue
@@ -7,12 +7,17 @@
                 >
                     <div class="record-log-card-date-container">
                         <div class="record-log-card-date-container-circle">
-                            <div class="xxsTxt bold line-height">{{item.createdDate | formatYear}}</div>
                             <div>
                                 <UiDateFormat
                                     class="xxsTxt bold line-height"
                                     :date="item.createdDate"
-                                    onlyShowSection="DAY" />
+                                    onlyShowSection="YEAR" />
+                            </div>
+                            <div>
+                                <UiDateFormat
+                                    class="xxsTxt bold line-height"
+                                    :date="item.createdDate"
+                                    onlyShowSection="DATE" />
                             </div>
                             <div>
                                 <UiDateFormat
@@ -40,15 +45,7 @@
 import { Component, Prop, Vue } from "nuxt-property-decorator";
 import { NoticeLogs } from "~/shared/models/appointment.model";
 
-@Component({
-    filters: {
-        formatYear(value) {
-            if (value) {
-                return new Date(value).getFullYear();
-            }
-        }
-    }
-})
+@Component
 export default class RecordCard extends Vue {
     @Prop()
     noticeLogsList!: NoticeLogs[];

--
Gitblit v1.8.0