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/client/client/index.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/views/client/client/index.vue b/src/views/client/client/index.vue
index 1c38523..6b3fe15 100644
--- a/src/views/client/client/index.vue
+++ b/src/views/client/client/index.vue
@@ -27,7 +27,7 @@
         :statistics="true"
         :operates-list="operatesList"
       />
-      <PagerView class="page" />
+      <PagerView class="page" :pager-options="pagerOptions" v-on="pagerEvents" />
     </div>
     <TableCommonView ref="tableListRef" v-loading="loading" :table-list="tableList">
       <template slot="tableButton">
@@ -49,10 +49,12 @@
 <script>
 import AddClientManageDialog from "@/views/client/client/AddClientManageDialog.vue"
 import { getClientList, getDeleteClient } from "@/api/client/client"
+import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
 
 export default {
   name: "CustomManage",
   props: {},
+  mixins: [pageMixin],
   components: {
     AddClientManageDialog
   },
@@ -122,7 +124,11 @@
     // 璇锋眰鏁版嵁
     async getData() {
       this.loading = true
-      await getClientList()
+      await getClientList({
+        keyword: "",
+        page: this.pagerOptions.currPage,
+        pageSize: this.pagerOptions.pageSize
+      })
         .then((res) => {
           console.log(res)
           if (res.code === 200) {
@@ -138,7 +144,6 @@
                     }
                   }
                 }
-
                 return {
                   ...item,
                   contact_name: contact_name,
@@ -146,6 +151,7 @@
                 }
               })
               this.tableList.tableInfomation = list || []
+              this.pagerOptions.totalCount = res.data.count
             } else {
               this.tableList.tableInfomation = []
             }

--
Gitblit v1.8.0