From af2b318da9d4c51b5b8afb2f4cefe86ff049bc7c Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期二, 17 十月 2023 21:16:45 +0800
Subject: [PATCH] feat: 添加缺失的请求

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

diff --git a/src/views/other/commonDialog/SelectContactDialog.vue b/src/views/other/commonDialog/SelectContactDialog.vue
index 4c71a20..5d97367 100644
--- a/src/views/other/commonDialog/SelectContactDialog.vue
+++ b/src/views/other/commonDialog/SelectContactDialog.vue
@@ -54,8 +54,8 @@
         return {
           editVisible: false,
           title: "",
-          infomation: {},
-          search_map: {}
+          clientId: 0,
+          infomation: {}
         }
       }
     }
@@ -71,17 +71,20 @@
       tableList: [],
       searchSelOptions: [],
       loading: false,
-      // search_map: {},
+      search_map: {},
       tableColumn: [
         { label: "鑱旂郴浜哄鍚�", prop: "name", isContactClick: true, default: true }, // 鑱旂郴浜哄鍚�
-        { label: "鑱旂郴浜虹紪鍙�", prop: "number" }, // 鑱旂郴浜虹紪鍙�
+        // { label: "鑱旂郴浜虹紪鍙�", prop: "number" }, // 鑱旂郴浜虹紪鍙�
         { label: "瀹㈡埛鍚嶇О", prop: "client_name" }, // 瀹㈡埛鍚嶇О
         { label: "鎵嬫満", prop: "phone" } // 鎵嬫満鍙风爜
       ],
-      showCol: ["鑱旂郴浜哄鍚�", "鑱旂郴浜虹紪鍙�", "瀹㈡埛鍚嶇О", "鎵嬫満"]
+      showCol: ["鑱旂郴浜哄鍚�",  "瀹㈡埛鍚嶇О", "鎵嬫満"]
     }
   },
   created() {
+    this.search_map = {
+      client_id: this.editConfig.clientId
+    }
     this.setTable()
     this.getData()
   },
@@ -121,7 +124,7 @@
     async getData() {
       this.loading = true
       await getContactList({
-        search_map: this.editConfig.search_map,
+        search_map: this.search_map,
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize
       })
@@ -158,13 +161,13 @@
     // 鎼滅储
     searchClick(val, content) {
       console.log(val, content)
-      this.editConfig.search_map = {
+      this.search_map = {
         [val.value]: content
       }
       this.getData()
     },
     resetClick() {
-      this.editConfig.search_map = {}
+      this.search_map = {}
       this.getData()
     }
   }

--
Gitblit v1.8.0