From 4fc4068252f1a07e0f42c20ad058a32c87f85a28 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期五, 28 七月 2023 16:24:52 +0800 Subject: [PATCH] 手机号增加校验 --- src/views/service/serviceFollowup/index.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/service/serviceFollowup/index.vue b/src/views/service/serviceFollowup/index.vue index 6c4d14d..767f241 100644 --- a/src/views/service/serviceFollowup/index.vue +++ b/src/views/service/serviceFollowup/index.vue @@ -3,7 +3,7 @@ <SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" /> <div class="btn-pager"> <PublicFunctionBtnView :import-button="false" :operates-list="operatesList" /> - <PagerView class="page" /> + <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" /> </div> <TableCommonView ref="tableListRef" :table-list="tableList"> <template slot="tableButton"> @@ -23,10 +23,12 @@ <script> import AddServiceFollowupDialog from "@/views/service/serviceFollowup/AddServiceFollowupDialog" import { getServiceFollowupList, getDelServiceFollowup } from "@/api/serviceManage/serviceFollowup" +import pageMixin from "@/components/makepager/pager/mixin/pageMixin" export default { name: "SalesLead", props: {}, + mixins: [pageMixin], components: { AddServiceFollowupDialog }, @@ -84,7 +86,11 @@ // 璇锋眰鏁版嵁 async getData() { this.loading = true - await getServiceFollowupList() + await getServiceFollowupList({ + keyword: "", + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + }) .then((res) => { console.log(res) if (res.code === 200) { @@ -95,6 +101,7 @@ } }) this.tableList.tableInfomation = list || [] + this.pagerOptions.totalCount = res.data.count } else { this.tableList.tableInfomation = [] } -- Gitblit v1.8.0