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

---
 src/templates/comtableconfig/menuform/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/templates/comtableconfig/menuform/index.jsx b/src/templates/comtableconfig/menuform/index.jsx
index 6fea3d2..617e4c2 100644
--- a/src/templates/comtableconfig/menuform/index.jsx
+++ b/src/templates/comtableconfig/menuform/index.jsx
@@ -33,7 +33,7 @@
 
     if (key === 'fstMenuId') {
       let _menu = menulist.filter(cell => cell.MenuID === value)[0]
-      let options = _menu ? _menu.options : []
+      let options = _menu ? _menu.children : []
       let ParentId = options[0] ? options[0].MenuID : ''
 
       this.setState({
@@ -111,7 +111,7 @@
                 <Select onChange={(value) => {this.selectChange('fstMenuId', value)}}>
                   {this.state.menulist.map(option =>
                     <Select.Option key={option.MenuID} value={option.MenuID}>
-                      {option.text}
+                      {option.text || option.MenuName}
                     </Select.Option>
                   )}
                 </Select>
@@ -132,7 +132,7 @@
                 <Select onChange={(value) => {this.selectChange('ParentId', value)}}>
                   {this.state.submenulist.map(option =>
                     <Select.Option key={option.MenuID} value={option.MenuID}>
-                      {option.text}
+                      {option.text || option.MenuName}
                     </Select.Option>
                   )}
                 </Select>

--
Gitblit v1.8.0