From 2aa5ab63b4bbce5c36dbb3511b205b3b5f6af9bd Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 07 五月 2024 11:34:20 +0800
Subject: [PATCH] 2024-05-07

---
 src/menu/components/form/formaction/actionform/index.jsx |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/menu/components/form/formaction/actionform/index.jsx b/src/menu/components/form/formaction/actionform/index.jsx
index a55b914..58a9db3 100644
--- a/src/menu/components/form/formaction/actionform/index.jsx
+++ b/src/menu/components/form/formaction/actionform/index.jsx
@@ -57,10 +57,15 @@
     } else if (this.record.type === 'close' || this.record.type === 'reset') {
       shows = ['typeName', 'label']
     } else {
-      shows = ['typeName', 'label', 'intertype', 'Ot', 'execSuccess', 'syncComponent', 'anchors', 'linkmenu', 'output', 'reload', 'preButton', 'resetForm'] // 閫夐」鍒楄〃
-      
+      shows = ['typeName', 'label', 'intertype', 'Ot', 'execSuccess', 'syncComponent', 'anchors', 'linkmenu', 'output', 'reload', 'preButton', 'refreshTab'] // 閫夐」鍒楄〃
+
+      if (this.record.execSuccess === 'never') {
+        shows.push('resetForms')
+      }
+      if (this.record.syncComponent && this.record.syncComponent[0]) {
+        shows.push('syncDelay')
+      }
       if (this.record.intertype === 'custom') {
-        shows.pop()
         shows.push('procMode', 'interface', 'callbackType', 'proInterface', 'method', 'cross', 'stringify', 'ContentType', 'outerBlacklist')
         if (this.record.procMode === 'system') {
           shows.push('sql', 'sqlType')
@@ -100,6 +105,9 @@
         shows.push('innerFunc')
       } else {
         shows.push('sql', 'sqlType')
+        if (this.record.execSuccess === 'never' && this.record.resetForms && this.record.resetForms[0]) {
+          shows.push('returnValue')
+        }
       }
       
       if (this.record.linkmenu && this.record.linkmenu !== 'goback') {
@@ -258,7 +266,7 @@
                     message: '璇疯緭鍏�' + item.label + '!'
                   }
                 ]
-              })(<InputNumber min={0} max={10000} precision={0} onPressEnter={this.handleSubmit}/>)}
+              })(<InputNumber min={0} max={10000} placeholder={item.placeholder || ''} precision={0} onPressEnter={this.handleSubmit}/>)}
             </Form.Item>
           </Col>
         )
@@ -282,6 +290,7 @@
               })(
                 <Select
                   showSearch
+                  mode={item.mode || ''}
                   filterOption={(input, option) => option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0}
                   onChange={(value) => {this.optionChange(item.key, value)}}
                   getPopupContainer={() => document.getElementById('winter')}
@@ -380,6 +389,9 @@
           if (values.outerBlacklist) {
             values.outerBlacklist = values.outerBlacklist.replace(/\s/ig, '')
           }
+          if (values.resetForms && values.resetForms.length === 0) {
+            values.resetForms = null
+          }
           resolve(values)
         } else {
           reject(err)

--
Gitblit v1.8.0