From 3d4d6480a947f2f6e032b7b4b7d04c2744115ad7 Mon Sep 17 00:00:00 2001 From: wayne <wayne8692wayne8692@gmail.com> Date: 星期二, 30 十一月 2021 20:42:15 +0800 Subject: [PATCH] [update] 嚴選配對年資欄位改單純字串比對,而非用enum接 --- 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