From d32456560d345d24ca004c416a99d6f16b00e301 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 17 十月 2023 11:18:38 +0800
Subject: [PATCH] 联系人和销售线索弹窗组件搜索问题修改

---
 src/views/other/commonDialog/SelectContactDialog.vue |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/src/views/other/commonDialog/SelectContactDialog.vue b/src/views/other/commonDialog/SelectContactDialog.vue
index 5e3010e..4c71a20 100644
--- a/src/views/other/commonDialog/SelectContactDialog.vue
+++ b/src/views/other/commonDialog/SelectContactDialog.vue
@@ -54,7 +54,8 @@
         return {
           editVisible: false,
           title: "",
-          infomation: {}
+          infomation: {},
+          search_map: {}
         }
       }
     }
@@ -70,7 +71,7 @@
       tableList: [],
       searchSelOptions: [],
       loading: false,
-      search_map: {},
+      // search_map: {},
       tableColumn: [
         { label: "鑱旂郴浜哄鍚�", prop: "name", isContactClick: true, default: true }, // 鑱旂郴浜哄鍚�
         { label: "鑱旂郴浜虹紪鍙�", prop: "number" }, // 鑱旂郴浜虹紪鍙�
@@ -120,9 +121,9 @@
     async getData() {
       this.loading = true
       await getContactList({
-        search_map: this.search_map,
-        page: 0,
-        pageSize: 0
+        search_map: this.editConfig.search_map,
+        page: this.pagerOptions.currPage,
+        pageSize: this.pagerOptions.pageSize
       })
         .then((res) => {
           console.log(res)
@@ -134,7 +135,8 @@
                   client_name: item.Client.name
                 }
               })
-              this.tableList.tableInfomation = list.slice(0, 5) || []
+              this.tableList.tableInfomation = list || []
+              this.pagerOptions.totalCount = res.data.count
             } else {
               this.tableList.tableInfomation = []
             }
@@ -156,13 +158,13 @@
     // 鎼滅储
     searchClick(val, content) {
       console.log(val, content)
-      this.search_map = {
+      this.editConfig.search_map = {
         [val.value]: content
       }
       this.getData()
     },
     resetClick() {
-      this.search_map = {}
+      this.editConfig.search_map = {}
       this.getData()
     }
   }

--
Gitblit v1.8.0