From 29c5821ce140e89a8b35e53f41672dd86da56982 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 18 二月 2020 18:43:38 +0800
Subject: [PATCH] 2020-02-18

---
 src/templates/subtableconfig/actionform/index.jsx |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/src/templates/subtableconfig/actionform/index.jsx b/src/templates/subtableconfig/actionform/index.jsx
index c3e03a2..8335a8f 100644
--- a/src/templates/subtableconfig/actionform/index.jsx
+++ b/src/templates/subtableconfig/actionform/index.jsx
@@ -64,6 +64,22 @@
     }, {
       value: 'delete',
       text: this.props.dict['header.form.action.delete']
+    }],
+    closeOptions: [{
+      value: 'never',
+      text: this.props.dict['header.form.refresh.never']
+    }, {
+      value: 'grid',
+      text: this.props.dict['header.form.refresh.grid']
+    }, {
+      value: 'view',
+      text: this.props.dict['header.form.refresh.view']
+    }, {
+      value: 'maingrid',
+      text: this.props.dict['header.form.refresh.maingrid']
+    }, {
+      value: 'equaltab',
+      text: this.props.dict['header.form.refresh.equaltab']
     }]
   }
 
@@ -168,7 +184,14 @@
               text: this.props.dict['header.form.popview']
             }
           ]
+        } else if (item.key === 'execSuccess') {
+          item.options = this.state.closeOptions
+        } else if (item.key === 'execError') {
+          item.options = this.state.closeOptions
+        } else if (item.key === 'popClose') {
+          item.options = this.state.closeOptions
         }
+
         item.hidden = !_options.includes(item.key)
         return item
       })
@@ -253,7 +276,7 @@
           formlist: this.state.formlist.map(item => {
             if (item.key === 'Ot') {
               item.hidden = false
-            } else if (item.key === 'sqlType' && ['prompt', 'exec', 'pop'].includes(value)) {
+            } else if (item.key === 'sqlType' && ['prompt', 'exec', 'pop'].includes(value) && this.state.interType === 'inner') {
               item.hidden = false
             }
             return item

--
Gitblit v1.8.0