From 95ccc1acc6d8ede1c839493e7aecc9c97fd34c8c Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 24 九月 2021 15:55:39 +0800
Subject: [PATCH] 2021-09-24

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

diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
index b544ead..96d9c47 100644
--- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
+++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx
@@ -222,7 +222,7 @@
       } else if (_intertype === 'outer') {
         _options.push('innerFunc', 'sysInterface', 'interface', 'proInterface', 'outerFunc', 'callbackFunc')
       } else if (_intertype === 'inner') {
-        _options.push('innerFunc')
+        _options.push('innerFunc', 'preFunc')
       } else {
         _options.push('sql', 'sqlType')
       }
@@ -527,7 +527,7 @@
 
       if (item.type === 'text') { // 鏂囨湰鎼滅储
         let _rules = []
-        if (item.key === 'innerFunc') {
+        if (item.key === 'innerFunc' || item.key === 'preFunc') {
           let str = '^(' + item.fields.join('|') + ')'
           let _patten = new RegExp(str + formRule.func.innerPattern + '$', 'g')
           _rules = [{
@@ -589,7 +589,7 @@
                     message: this.props.dict['form.required.input'] + item.label + '!'
                   }
                 ]
-              })(<InputNumber min={0} max={10000} precision={0} />)}
+              })(<InputNumber min={0} max={10000} precision={0} onPressEnter={this.handleSubmit}/>)}
             </Form.Item>
           </Col>
         )

--
Gitblit v1.8.0