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/service/serviceContract/index.vue | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/views/service/serviceContract/index.vue b/src/views/service/serviceContract/index.vue index 61952f9..0655c35 100644 --- a/src/views/service/serviceContract/index.vue +++ b/src/views/service/serviceContract/index.vue @@ -3,7 +3,7 @@ <SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" /> <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"> @@ -23,10 +23,12 @@ <script> import AddServiceContractDialog from "@/views/service/serviceContract/AddServiceContractDialog" import { getServiceContractList, getDelServiceContract } from "@/api/serviceManage/serviceContract" +import pageMixin from "@/components/makepager/pager/mixin/pageMixin" export default { name: "ServiceContract", props: {}, + mixins: [pageMixin], components: { AddServiceContractDialog }, @@ -94,7 +96,11 @@ // 璇锋眰鏁版嵁 async getData() { this.loading = true - await getServiceContractList() + await getServiceContractList({ + keyword: "", + page: this.pagerOptions.currPage, + pageSize: this.pagerOptions.pageSize + }) .then((res) => { console.log(res) if (res.code === 200) { @@ -105,6 +111,7 @@ } }) this.tableList.tableInfomation = list || [] + this.pagerOptions.totalCount = res.data.count } else { this.tableList.tableInfomation = [] } -- Gitblit v1.8.0