From abfd26bb700d93a92da6a04703b0187d4acaaeb5 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 22 十二月 2021 10:13:02 +0800
Subject: [PATCH] refactor: move ts folder to shared folder

---
 PAMapp/pages/myConsultantList/consultantList.vue |   22 ++++++++--------------
 1 files changed, 8 insertions(+), 14 deletions(-)

diff --git a/PAMapp/pages/myConsultantList/consultantList.vue b/PAMapp/pages/myConsultantList/consultantList.vue
index c46c2f8..0b1d3b6 100644
--- a/PAMapp/pages/myConsultantList/consultantList.vue
+++ b/PAMapp/pages/myConsultantList/consultantList.vue
@@ -2,7 +2,7 @@
     <div>
         <ConsultantList
             :agents="pageList"
-            @removeAgent="removeAgent"
+            :title="'consultantList'"
         ></ConsultantList>
 
         <UiPagination
@@ -13,24 +13,18 @@
 </template>
 
 <script lang="ts">
-import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator';
-import { Agents } from '~/plugins/api/home';
+import { Vue, Component, Prop } from 'nuxt-property-decorator';
+import { Consultant } from '~/shared/models/consultant.model';
+
 
 @Component
 export default class ConsultantPage extends Vue {
-    @Prop() consultantList!: Agents[];
-    pageList: Agents[] = [];
+    @Prop() consultantList!: Consultant[];
+    pageList: Consultant[] = [];
 
-    @Emit('remove') remove(agentNo: number) {
-        return agentNo;
-    }
-
-    changePage(pageList: Agents[]) {
+    changePage(pageList: Consultant[]) {
         this.pageList = pageList;
     }
 
-    removeAgent(agentNo: number) {
-        this.remove(agentNo);
-    }
 }
-</script>
\ No newline at end of file
+</script>

--
Gitblit v1.8.0