From 835b48025a582b1c19c4de128906aff6a5e63612 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 22 八月 2020 12:08:35 +0800
Subject: [PATCH] 2020-08-22

---
 src/templates/sharecomponent/settingcomponent/index.jsx |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)

diff --git a/src/templates/sharecomponent/settingcomponent/index.jsx b/src/templates/sharecomponent/settingcomponent/index.jsx
index 4e0ac05..336275f 100644
--- a/src/templates/sharecomponent/settingcomponent/index.jsx
+++ b/src/templates/sharecomponent/settingcomponent/index.jsx
@@ -22,7 +22,6 @@
     MenuID: PropTypes.string,        // 鑿滃崟ID
     config: PropTypes.object,        // 鑿滃崟閰嶇疆淇℃伅
     permFuncField: PropTypes.array,  // 瀛樺偍杩囩▼鍙敤寮�澶村瓧娈�
-    menuformRef: PropTypes.any,      // 鑿滃崟鍩烘湰淇℃伅琛ㄥ崟
     updatesetting: PropTypes.func
   }
 
@@ -38,15 +37,9 @@
    * @description 鍏ㄥ眬璁剧疆瑙﹀彂
    */
   changeSetting = () => {
-    const { menuformRef, MenuID, config, type, permFuncField, mainsearch } = this.props
-    let menu = {MenuID: MenuID}
-
-    if (menuformRef) {
-      menu = {MenuID: MenuID, MenuName: menuformRef.props.form.getFieldValue('MenuName') || '', MenuNo: menuformRef.props.form.getFieldValue('MenuNo') || ''}
-    }
-
+    const { MenuID, config, type, permFuncField, mainsearch } = this.props
+    let menu = {MenuID: MenuID, MenuName: config.MenuName, MenuNo: config.MenuNo}
     let _columns = fromJS(config.columns).toJS()
-
     let primaryKey = config.setting.primaryKey || ''
 
     if (!primaryKey || _columns.filter(column => column.field === primaryKey).length === 0) {

--
Gitblit v1.8.0