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/followupRecords/index.vue |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue
index 4002978..63e2a72 100644
--- a/src/views/client/followupRecords/index.vue
+++ b/src/views/client/followupRecords/index.vue
@@ -3,7 +3,7 @@
     <SearchCommonView ref="searchCommonView" :query-class-options="queryClassOptions" :search-options="searchOptions" />
     <div class="btn-pager">
       <PublicFunctionBtnView :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">
@@ -23,10 +23,12 @@
 <script>
 import AddFollowupRecordsDialog from "@/views/client/followupRecords/AddFollowupRecordsDialog"
 import { getFollowRecordList, getDeleteFollowRecord } from "@/api/client/followupRecords.js"
+import pageMixin from "@/components/makepager/pager/mixin/pageMixin"
 
 export default {
   name: "FollowupRecords",
   props: {},
+  mixins: [pageMixin],
   components: {
     AddFollowupRecordsDialog
   },
@@ -61,7 +63,8 @@
         visible: false,
         title: "鏂板缓",
         infomation: {}
-      }
+      },
+      saleChanceName: ""
     }
   },
   created() {
@@ -94,7 +97,11 @@
     // 璇锋眰鏁版嵁
     async getData() {
       this.loading = true
-      await getFollowRecordList()
+      await getFollowRecordList({
+        keyword: "",
+        page: this.pagerOptions.currPage,
+        pageSize: this.pagerOptions.pageSize
+      })
         .then((res) => {
           console.log(res)
           if (res.code === 200) {
@@ -109,6 +116,7 @@
                 }
               })
               this.tableList.tableInfomation = list || []
+              this.pagerOptions.totalCount = res.data.count
             } else {
               this.tableList.tableInfomation = []
             }
@@ -134,7 +142,7 @@
       console.log(row)
       this.editConfig.visible = true
       this.editConfig.title = "缂栬緫"
-      this.editConfig.infomation = { ...row }
+      this.editConfig.infomation = { ...row, sale_chance_name: "", sales_leads_name: "" }
     },
     // 鍒犻櫎
     delClick(id) {

--
Gitblit v1.8.0