From 20b87b7eab9c600e2445548c4306ea1b8b37b275 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期一, 06 十二月 2021 12:29:50 +0800 Subject: [PATCH] update#131467: [滿意度評分功能]-客戶進行滿意度評分API串接 --- 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..5ab226b 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/models/consultant.model'; @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