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/sales/quotation/index.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/sales/quotation/index.vue b/src/views/sales/quotation/index.vue index a87c817..f583aa4 100644 --- a/src/views/sales/quotation/index.vue +++ b/src/views/sales/quotation/index.vue @@ -8,7 +8,7 @@ /> <div class="btn-pager"> <PublicFunctionBtnView :submit-approval="true" :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"> @@ -28,10 +28,12 @@ <script> import AddQuotationDialog from "@/views/sales/quotation/AddQuotationDialog" import { getQuotationList, getDelQuotation } from "@/api/sales/quotation" +import pageMixin from "@/components/makepager/pager/mixin/pageMixin" export default { name: "QuotationView", props: {}, + mixins: [pageMixin], components: { AddQuotationDialog }, @@ -97,7 +99,11 @@ // 璇锋眰鏁版嵁 async getData() { this.loading = true - await getQuotationList() + await getQuotationList({ + keyword: "", + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + }) .then((res) => { console.log(res) if (res.code === 200) { @@ -110,6 +116,7 @@ } }) this.tableList.tableInfomation = list || [] + this.pagerOptions.totalCount = res.data.count } else { this.tableList.tableInfomation = [] } -- Gitblit v1.8.0