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/sales/salesOpportunity/index.vue |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/views/sales/salesOpportunity/index.vue b/src/views/sales/salesOpportunity/index.vue
index 277db73..69511cd 100644
--- a/src/views/sales/salesOpportunity/index.vue
+++ b/src/views/sales/salesOpportunity/index.vue
@@ -64,6 +64,12 @@
     isDetail: {
       type: Boolean,
       default: false
+    },
+    addConfig: {
+      type: Object,
+      default: () => {
+        return {}
+      }
     }
   },
   mixins: [pageMixin],
@@ -73,11 +79,7 @@
     DetailContacts: () => import("@/views/client/contacts/DetailContacts"),
     DetailClientManage: () => import("@/views/client/client/DetailClientManage")
   },
-  computed: {
-    searchCommonHeight() {
-      return this.$refs.searchCommonView.offsetHeight
-    }
-  },
+  computed: {},
   data() {
     return {
       tableList: {},
@@ -130,7 +132,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() {
@@ -208,7 +215,7 @@
     addBtnClick() {
       this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
-      this.editConfig.infomation = { city_id: 0 }
+      this.editConfig.infomation = { city_id: 0, ...this.addConfig }
     },
     // 缂栬緫
     handleClick(row) {

--
Gitblit v1.8.0