From 86aab033b5129b00651b716ee70ce871cf670008 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 31 三月 2020 20:12:30 +0800
Subject: [PATCH] 2020-03-31

---
 src/tabviews/rolemanage/index.jsx |   18 +++++++++++++++---
 1 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/rolemanage/index.jsx b/src/tabviews/rolemanage/index.jsx
index 63e5a9f..b2c8d93 100644
--- a/src/tabviews/rolemanage/index.jsx
+++ b/src/tabviews/rolemanage/index.jsx
@@ -340,13 +340,16 @@
       _keys = Array.from(_keys.keys())
     }
     
-    let _LText = _keys.map(key => `select '${key}' as MenuID`)
-    _LText = _LText.join(' union all ')
+    // let _LText = _keys.map(key => `select '${key}' as MenuID`)
+    // _LText = _LText.join(' union all ')
 
     let param = {
       func: 's_rolemenu_sub',
       RoleID: selectRoleId,
-      LText: Utils.formatOptions(_LText)
+      // LText: Utils.formatOptions(_LText)
+      RoleMenu: _keys.map(key => {
+        return {MenuID: key}
+      })
     }
 
     this.setState({
@@ -388,6 +391,15 @@
     this.getMainMenuList()
   }
 
+  /**
+   * @description 缁勪欢閿�姣侊紝娓呴櫎state鏇存柊
+   */
+  componentWillUnmount () {
+    this.setState = () => {
+      return
+    }
+  }
+
   shouldComponentUpdate (nextProps, nextState) {
     return !is(fromJS(this.props), fromJS(nextProps)) || !is(fromJS(this.state), fromJS(nextState))
   }

--
Gitblit v1.8.0