From b0733e169ddcdf67e81f70dcf7f4dc948e85ff19 Mon Sep 17 00:00:00 2001
From: HelenHuang <LinHuang@pollex.com.tw>
Date: 星期五, 21 一月 2022 22:20:12 +0800
Subject: [PATCH] fixed#134599 修正 [ 顧問管理流程 ] 結案狀態的預約單 : 在結案明細中,點擊「發送滿意度通知」沒有反映。

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

diff --git a/PAMapp/components/Ui/UiPagination.vue b/PAMapp/components/Ui/UiPagination.vue
index 80f1075..2e13b2b 100644
--- a/PAMapp/components/Ui/UiPagination.vue
+++ b/PAMapp/components/Ui/UiPagination.vue
@@ -1,6 +1,6 @@
 <template>
     <el-pagination
-        :current-page.sync="currentPage"
+        :current-page.sync="syncCurrentPage"
         layout="prev, pager, next"
         :total="totalList.length"
         :page-size="pageSize"
@@ -11,7 +11,7 @@
 </template>
 
 <script lang="ts">
-import { Vue, Component, Prop, Emit, Watch } from 'nuxt-property-decorator';
+import { Vue, Component, Prop, Emit, Watch, PropSync } from 'nuxt-property-decorator';
 import { Consultant } from '~/shared/models/consultant.model';
 
 @Component
@@ -20,7 +20,7 @@
     totalList!: Consultant[];
 
     @Prop({default: 5}) pageSize!: number;
-    currentPage = 1;
+    @PropSync('currentPage', {default: 1}) syncCurrentPage!: number;
 
     pageList: Consultant[] = [];
 
@@ -34,14 +34,14 @@
     @Watch('totalList')
     watchTotalList(newValue: Consultant[]) {
         if (newValue) {
-            this.handleCurrentChange(this.currentPage);
+            this.handleCurrentChange(this.syncCurrentPage);
         }
     }
 
     //////////////////////////////////////////////////////////////////
 
     mounted() {
-        this.handleCurrentChange(this.currentPage);
+        this.handleCurrentChange(this.syncCurrentPage);
     }
 
     //////////////////////////////////////////////////////////////////

--
Gitblit v1.8.0