From 88ca0a326f0101a7713404909041003a512bb7e2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 08 六月 2022 17:19:41 +0800
Subject: [PATCH] 2022-06-08

---
 src/templates/sharecomponent/searchcomponent/index.jsx |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/searchcomponent/index.jsx b/src/templates/sharecomponent/searchcomponent/index.jsx
index 4f45d34..b461319 100644
--- a/src/templates/sharecomponent/searchcomponent/index.jsx
+++ b/src/templates/sharecomponent/searchcomponent/index.jsx
@@ -127,10 +127,17 @@
       })
     })
 
+    let columns = null
+    if (this.props.config.type === 'table') {
+      columns = this.props.config.columns.map(item => {
+        return {key: item.uuid, text: item.field, value: item.field, label: item.label}
+      })
+    }
+
     this.setState({
       visible: true,
       card: card,
-      formlist: getSearchForm(card, linkableFields)
+      formlist: getSearchForm(card, linkableFields, columns)
     })
   }
 

--
Gitblit v1.8.0