From b4d6944076f1df6eedaae35c4c2a7072fe988e8a Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期二, 30 四月 2024 15:34:02 +0800
Subject: [PATCH] update: package-lock.json

---
 PAMapp/pages/record/index.vue |   65 ++++----------------------------
 1 files changed, 8 insertions(+), 57 deletions(-)

diff --git a/PAMapp/pages/record/index.vue b/PAMapp/pages/record/index.vue
index db7ac04..be49f11 100644
--- a/PAMapp/pages/record/index.vue
+++ b/PAMapp/pages/record/index.vue
@@ -1,69 +1,20 @@
 <template>
-
-<div class="user-reviews-page">
-    <section class="mdTxt">
-        �������
-    </section>
-
-    <section class="user-reviews-header">
-        <div class="header-title mdTxt">
-            皛踵�漲蝝����
-        </div>
-    </section>
-
-    <section class="user-reviews-content">
-        <div
-            class="user-reviews-card"
-            v-for="(appointmentLog, index) in myAppointmentReviewLogList"
-            :key="index">
-            <div class="user-reviews-card-content" v-if="currentRole === 'user'">
-                �撠�<span class="mdTxt">{{ ` ${appointmentLog.agentName} ` }}</span>���� <UiReviewScore :score="appointmentLog.score" /> 閰嚗�
-            </div>
-            <div class="user-reviews-card-content" v-else>
-                {{ `${appointmentLog.customerName} `}} 撠���� <UiReviewScore :score="appointmentLog.score" /> 閰嚗�
-            </div>
-            <div class="user-reviews-card-date">
-                <div class="date">
-                    <UiDateFormat
-                        :date="appointmentLog.lastModifiedDate"
-                        onlyShowSection="DAY" />
-                </div>
-                <div class="time">
-                    <UiDateFormat
-                        :date="appointmentLog.lastModifiedDate"
-                        onlyShowSection="TIME" />
-                </div>
-            </div>
-        </div>
-    </section>
-
+<div>
+    <ReviewRecords
+      :reviewLogList="reviewLogList"
+    ></ReviewRecords>
 </div>
-
 </template>
 <script lang="ts">
-import { Vue, Component, Action, State, namespace } from 'nuxt-property-decorator';
-import { AppointmentLog } from '~/shared/models/appointment.model';
+import { Vue, Component, Action, State } from 'nuxt-property-decorator';
 
-const roleStorage = namespace('localStorage');
+import { AppointmentLog } from '~/shared/models/appointment.model';
 
 @Component
 export default  class Reviews extends Vue{
 
-    today = new Date();
-
-    @roleStorage.Getter currentRole!:string;
-
-    @State('myAppointmentReviewLogList') myAppointmentReviewLogList!: AppointmentLog[];
-
-    @Action storeMyAppointmentReviewLog!: any;
-
-    appointmentLogList: AppointmentLog[] = [];
-
-    mounted() {
-        this.storeMyAppointmentReviewLog();
-    }
-
-
+    @State('reviewLogList')
+    reviewLogList!: AppointmentLog[];
 
 }
 </script>

--
Gitblit v1.8.0