From 2cfae2f496b90278d9af3c11159faa655e25a4ef Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 29 六月 2020 19:21:06 +0800
Subject: [PATCH] 2020-06-29

---
 src/templates/sharecomponent/actioncomponent/actionform/index.jsx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
index 99d286c..8a9df3f 100644
--- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
@@ -333,6 +333,7 @@
           _options = ['label', 'OpenType', 'funcType', 'execMode', 'intertype', 'innerFunc', 'Ot', 'icon', 'class', 'execSuccess', 'execError']
         }
       }
+      let _fieldval = {}
 
       this.setState({
         formlist: this.state.formlist.map(item => {
@@ -340,12 +341,16 @@
 
           if (item.hidden) return item
 
-          if (item.key === 'Ot' && value === 'print') {
+          if (item.key === 'intertype') {
+            _fieldval.intertype = this.state.interType
+          } else if (item.key === 'Ot' && value === 'print') {
             item.options = this.state.requireOptions
           }
 
           return item
         })
+      }, () => {
+        this.props.form.setFieldsValue(_fieldval)
       })
     } else if (key === 'sqlType') {
       let _fieldval = {}

--
Gitblit v1.8.0