From 707b43ca15d380db9b6a72c3a63abc2d7b0efc83 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期一, 20 十二月 2021 12:16:43 +0800
Subject: [PATCH] update: 增加 userReviewsRecord 標題名稱

---
 PAMapp/components/Client/ClientList.vue |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/PAMapp/components/Client/ClientList.vue b/PAMapp/components/Client/ClientList.vue
index b2c541f..afdcdfc 100644
--- a/PAMapp/components/Client/ClientList.vue
+++ b/PAMapp/components/Client/ClientList.vue
@@ -2,14 +2,14 @@
     <div>
         <template v-if="clients.length > 0">
             <ClientCard
-                v-for="(client, index) in clients"
-                :key="index"
+                v-for="(client) in clients"
+                :key="client.id"
                 :client="client"
             ></ClientCard>
         </template>
         <template v-else>
-            <div class="emptyRowStyle">
-                <div class="smTxt txt">{{title === 'reservedList' ? '����撌脤��恥�' : '����撌脰蝯∪恥�'}}</div>
+            <div class="client-list--empty">
+                <div class="smTxt txt">{{ noDataPlaceholder }}</div>
             </div>
         </template>
     </div>
@@ -17,17 +17,26 @@
 
 <script lang='ts'>
 import { Vue, Component, Prop } from 'nuxt-property-decorator';
-import { ClientInfo } from '~/assets/ts/api/consultant';
+
+import { ClientInfo } from '~/assets/ts/models/client.model';
 
 @Component
 export default class ClientList extends Vue {
     @Prop() clients!: ClientInfo[];
     @Prop() title!: string;
+
+    //////////////////////////////////////////////////////////////////////
+
+    get noDataPlaceholder(): string {
+      return this.title === 'reservedList'
+                          ? '����撌脤��恥�'
+                          : '����撌脰蝯∪恥�';
+    }
 }
 </script>
 
 <style lang="scss" scoped>
-    .emptyRowStyle {
+    .client-list--empty {
         background-color: $PRIMARY_WHITE;
         width: 100%;
         height: 100px;
@@ -40,4 +49,4 @@
             margin-left: 17px;
         }
     }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0