From 4a2ae34a3cf85f5e8b0409b858cfbb12ef8b5ee2 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 02 八月 2023 11:18:51 +0800
Subject: [PATCH] 注掉暂不支持内容

---
 src/views/client/followupRecords/index.vue |   18 +++++++++++++-----
 1 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue
index 5cf30ea..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) {
@@ -149,7 +157,7 @@
         .then((response) => {
           if (response.code === 200) {
             this.$message.success("鍒犻櫎鎴愬姛")
-            this.getUserList()
+            this.getData()
           } else {
             this.$message.warning("鍒犻櫎澶辫触")
           }

--
Gitblit v1.8.0