From 0bff15b120b3e3ff1f1c3d2ce4d9aa8d3ad3917e Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 06 十一月 2020 13:49:44 +0800
Subject: [PATCH] 2020-11-06

---
 src/menu/components/search/main-search/index.jsx |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/menu/components/search/main-search/index.jsx b/src/menu/components/search/main-search/index.jsx
index 7a700dc..bbf5a34 100644
--- a/src/menu/components/search/main-search/index.jsx
+++ b/src/menu/components/search/main-search/index.jsx
@@ -25,13 +25,7 @@
   static propTpyes = {
     card: PropTypes.object,
     updateConfig: PropTypes.func,
-    deletecomponent: PropTypes.func,
-
-    menu: PropTypes.object,          // 褰撳墠鑿滃崟淇℃伅
-    config: PropTypes.object,        // 閰嶇疆淇℃伅
-    pasteContent: PropTypes.object,  // 绮樿创閰嶇疆淇℃伅
-    sysRoles: PropTypes.array,       // 瑙掕壊鍒楄〃锛岄粦鍚嶅崟
-    updatesearch: PropTypes.func     // 鏇存柊
+    deletecomponent: PropTypes.func
   }
 
   state = {
@@ -148,6 +142,7 @@
    * @description 鎼滅储鏉′欢缂栬緫锛岃幏鍙栨悳绱㈡潯浠惰〃鍗曚俊鎭�
    */
   handleSearch = (cell) => {
+    const { menu } = this.props
     const { card } = this.state
     let linkableFields = []
 
@@ -163,7 +158,7 @@
     this.setState({
       visible: true,
       editcard: cell,
-      formlist: getSearchForm(cell, this.props.sysRoles, linkableFields)
+      formlist: getSearchForm(cell, menu.sysRoles, linkableFields)
     })
   }
 
@@ -358,7 +353,7 @@
         <Popover overlayClassName="mk-popover-control-wrap" mouseLeaveDelay={0.2} mouseEnterDelay={0.2} content={
           <div className="mk-popover-control">
             <Icon className="plus" title="娣诲姞" onClick={this.addSearch} type="plus" />
-            <WrapComponent config={card} updateConfig={this.updateComponent}/>
+            <WrapComponent config={card} sysRoles={this.props.menu.sysRoles} updateConfig={this.updateComponent}/>
             <Icon className="style" title="璋冩暣鏍峰紡" onClick={this.changeStyle} type="font-colors" />
             <Icon className="close" title="delete" type="delete" onClick={() => this.props.deletecomponent(card.uuid)} />
           </div>

--
Gitblit v1.8.0