From bdae23a40c461c2c6b6ee614f661eac731c949c8 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期三, 22 十二月 2021 14:12:05 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 PAMapp/components/Consultant/ConsultantList.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantList.vue b/PAMapp/components/Consultant/ConsultantList.vue
index 57c8e06..ce11a46 100644
--- a/PAMapp/components/Consultant/ConsultantList.vue
+++ b/PAMapp/components/Consultant/ConsultantList.vue
@@ -10,7 +10,7 @@
         </template>
         <template v-if="isUserLogin && agentList.length === 0">
             <div class="emptyRowStyle">
-                <div class="smTxt txt">����撌脤憿批��</div>
+                <div class="smTxt txt">{{ noDataPlaceholder }}</div>
             </div>
         </template>
         <template v-if="!isUserLogin">
@@ -24,14 +24,14 @@
 
 <script lang="ts">
 import { Vue, Component, Prop, namespace } from 'nuxt-property-decorator';
-import { Consultant } from '~/assets/ts/models/consultant.model';
-import { Role } from '~/assets/ts/models/enum/Role';
+import { Consultant } from '~/shared/models/consultant.model';
 
 const roleStorage = namespace('localStorage');
 
 @Component
 export default class ConsultantList extends Vue {
     @Prop() agents!: Consultant[];
+    @Prop() title! : string;
     @roleStorage.Getter isUserLogin!:boolean;
 
     get agentList(){
@@ -40,6 +40,12 @@
         )
     }
 
+    get noDataPlaceholder(): string {
+      return this.title === 'contactedList'
+                          ? '����撌脰蝯⊿“���'
+                          : '����撌脤憿批��';
+    }
+
 }
 </script>
 

--
Gitblit v1.8.0