From 2ff464f30d94235b3ad04475593b75a74a354de9 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 09 四月 2020 19:04:01 +0800
Subject: [PATCH] 2020-04-09

---
 src/templates/comtableconfig/index.jsx |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/templates/comtableconfig/index.jsx b/src/templates/comtableconfig/index.jsx
index 849c1c3..e328ef9 100644
--- a/src/templates/comtableconfig/index.jsx
+++ b/src/templates/comtableconfig/index.jsx
@@ -435,12 +435,10 @@
    * @description 鎼滅储鏉′欢缂栬緫锛岃幏鍙栨悳绱㈡潯浠惰〃鍗曚俊鎭�
    */
   handleSearch = (card) => {
-    const { menu } = this.props
-
     this.setState({
       modaltype: 'search',
       card: card,
-      formlist: getSearchForm(card, menu.roleList)
+      formlist: getSearchForm(card, this.props.sysRoles)
     })
   }
 
@@ -528,14 +526,14 @@
             loading: false,
             modaltype: 'columns',
             card: card,
-            formlist: getColumnForm(card, menu.roleList, menulist)
+            formlist: getColumnForm(card, this.props.sysRoles, menulist)
           })
         })
       } else {
         this.setState({
           modaltype: 'columns',
           card: card,
-          formlist: getColumnForm(card, menu.roleList, menulist)
+          formlist: getColumnForm(card, this.props.sysRoles, menulist)
         })
       }
     } else {
@@ -3377,6 +3375,7 @@
 
 const mapStateToProps = (state) => {
   return {
+    sysRoles: state.sysRoles,
     permFuncField: state.permFuncField
   }
 }

--
Gitblit v1.8.0