From e08bc304e5be985bf83d4e668daf8ffa0f256e14 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期四, 18 十一月 2021 11:15:44 +0800
Subject: [PATCH] update: 我的顧問清單/預約清單: 調整需求單樣式

---
 PAMapp/components/Ui/UiPagination.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/PAMapp/components/Ui/UiPagination.vue b/PAMapp/components/Ui/UiPagination.vue
index 0229097..4e795bf 100644
--- a/PAMapp/components/Ui/UiPagination.vue
+++ b/PAMapp/components/Ui/UiPagination.vue
@@ -12,20 +12,20 @@
 
 <script lang="ts">
 import { Vue, Component, Prop, Emit, Watch } from 'nuxt-property-decorator';
-import { Agents } from '~/plugins/api/home';
+import { Consultants } from '~/assets/ts/api/consultant';
 
 @Component
 export default class UiPagination extends Vue {
-    @Prop() totalList!: Agents[];
-    pageSize = 5;
+    @Prop() totalList!: Consultants[];
+    @Prop({default: 5}) pageSize!: number;
     currentPage = 1;
-    pageList: Agents[] = [];
+    pageList: Consultants[] = [];
 
     mounted() {
         this.handleCurrentChange(this.currentPage);
     }
 
-    @Emit('changePage') chagnePage(): Agents[] {
+    @Emit('changePage') chagnePage(): Consultants[] {
         return this.pageList
     }
 
@@ -41,7 +41,7 @@
         }
     }
 
-    @Watch('totalList') watchtotalList(newValue: Agents[]) {
+    @Watch('totalList') watchtotalList(newValue: Consultants[]) {
         if (newValue) {
             this.handleCurrentChange(this.currentPage);
         }

--
Gitblit v1.8.0