From 6857572e3d303daaf3c28e639aad91c0bdf2fc42 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 15 八月 2023 14:30:10 +0800
Subject: [PATCH] bug修复及对应参数联调

---
 src/views/client/contacts/index.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/views/client/contacts/index.vue b/src/views/client/contacts/index.vue
index 303b3d4..279ab6b 100644
--- a/src/views/client/contacts/index.vue
+++ b/src/views/client/contacts/index.vue
@@ -57,6 +57,12 @@
     isDetail: {
       type: Boolean,
       default: false
+    },
+    addConfig: {
+      type: Object,
+      default: () => {
+        return {}
+      }
     }
   },
   mixins: [pageMixin],
@@ -113,7 +119,12 @@
   },
   created() {
     this.setTable()
-    this.getData()
+    if (!this.isDetail) {
+      this.search_map = {}
+    } else {
+      this.search_map = { ...this.addConfig }
+    }
+    this.getData(this.search_map)
   },
   methods: {
     setTable() {
@@ -125,7 +136,7 @@
           { label: "鑱旂郴浜虹紪鍙�", prop: "number", min: 100 }, // 鑱旂郴浜虹紪鍙�
           { label: "鑱屽姟", prop: "position", min: 120 }, // 鑱屽姟
           { label: "鎵嬫満", prop: "phone", min: 100 }, // 鎵嬫満鍙风爜
-          { label: "閿�鍞礋璐d汉", prop: "member_id", min: 120 }, // 閿�鍞礋璐d汉
+          { label: "閿�鍞礋璐d汉", prop: "member_name", min: 120 }, // 閿�鍞礋璐d汉
           { label: "棣栬鑱旂郴浜�", prop: "is_first", min: 90 } // 棣栬鑱旂郴浜�
         ]
       }
@@ -153,7 +164,8 @@
                   ...item,
                   client_name: item.Client.name,
                   is_first: item.is_first ? "鏄�" : "鍚�",
-                  client_id: item.Client.id
+                  client_id: item.Client.id,
+                  member_name: item.member.username
                 }
               })
               this.tableList.tableInfomation = list || []
@@ -188,7 +200,7 @@
     addBtnClick() {
       this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
-      this.editConfig.infomation = {}
+      this.editConfig.infomation = { ...this.addConfig }
     },
     // 缂栬緫
     handleClick(row) {

--
Gitblit v1.8.0