From ebddc02611b0373c1d5bfa342bd781fb5eb82009 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期二, 01 八月 2023 14:23:31 +0800 Subject: [PATCH] 侧边栏样式机销售明细单增加销售机会选择弹窗 --- src/views/sales/quotation/index.vue | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/views/sales/quotation/index.vue b/src/views/sales/quotation/index.vue index 0988c94..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 = [] } @@ -150,7 +157,7 @@ .then((response) => { if (response.code === 200) { this.$message.success("鍒犻櫎鎴愬姛") - this.getUserList() + this.getData() } else { this.$message.warning("鍒犻櫎澶辫触") } -- Gitblit v1.8.0