From 9cf5fc474d2159aad973e3208fbef670f325307f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 25 十一月 2020 17:57:41 +0800
Subject: [PATCH] 2020-11-25

---
 src/menu/actioncomponent/actionform/index.jsx |   27 +--------------------------
 1 files changed, 1 insertions(+), 26 deletions(-)

diff --git a/src/menu/actioncomponent/actionform/index.jsx b/src/menu/actioncomponent/actionform/index.jsx
index a9758c6..3c00ca0 100644
--- a/src/menu/actioncomponent/actionform/index.jsx
+++ b/src/menu/actioncomponent/actionform/index.jsx
@@ -79,7 +79,6 @@
   UNSAFE_componentWillMount () {
     const { card, type } = this.props
 
-    let _menulist = this.props.formlist.filter(form => form.key === 'linkmenu')[0] || ''
     let _opentype = card.OpenType                // 鎵撳紑鏂瑰紡
     let _intertype = card.intertype || 'system'  // 鎺ュ彛绫诲瀷
     let _funcType = card.funcType || 'print'     // 鍔熻兘鎸夐挳榛樿绫诲瀷
@@ -92,7 +91,6 @@
 
     this.setState({
       openType: _opentype,
-      menulist: _menulist.options || [],
       interType: _intertype,
       funcType: _funcType,
       formlist: this.props.formlist.map(item => {
@@ -544,10 +542,7 @@
                   }
                 ]
               })(
-                <Cascader
-                  options={this.state.menulist}
-                  placeholder=""
-                />
+                <Cascader options={item.options || []} placeholder=""/>
               )}
             </Form.Item>
           </Col>
@@ -571,7 +566,6 @@
 
   handleConfirm = () => {
     const { setting } = this.props
-    const { menulist } = this.state
     // 琛ㄥ崟鎻愪氦鏃舵鏌ヨ緭鍏ュ�兼槸鍚︽纭�
     return new Promise((resolve, reject) => {
       this.props.form.validateFieldsAndScroll((err, values) => {
@@ -609,25 +603,6 @@
             } else if (this.props.card.Ot === 'requiredOnce' && ['notRequired', 'requiredSgl', 'required'].includes(values.Ot)) {
               values.verify.uniques = []
             }
-          }
-
-          // 鍏宠仈涓夌骇鑿滃崟
-          if (values.OpenType === 'tab' && values.linkmenu && values.linkmenu.length > 0) {
-            let linkThdMenu = ''
-            menulist.forEach(menu => {
-              if (menu.value === values.linkmenu[0]) {
-                menu.children.forEach(item => {
-                  if (item.value === values.linkmenu[1]) {
-                    item.children.forEach(cell => {
-                      if (cell.value === values.linkmenu[2]) {
-                        linkThdMenu = cell
-                      }
-                    })
-                  }
-                })
-              }
-            })
-            values.linkThdMenu = linkThdMenu
           }
           
           resolve(values)

--
Gitblit v1.8.0