From 3ca91a731665962918a026f521c556f4745ebf35 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 16 十一月 2020 19:20:19 +0800
Subject: [PATCH] 2020-11-16

---
 src/templates/zshare/formconfig.jsx |   49 +++++++++++++++++++++++++++++++------------------
 1 files changed, 31 insertions(+), 18 deletions(-)

diff --git a/src/templates/zshare/formconfig.jsx b/src/templates/zshare/formconfig.jsx
index 11d1285..bffa047 100644
--- a/src/templates/zshare/formconfig.jsx
+++ b/src/templates/zshare/formconfig.jsx
@@ -633,6 +633,16 @@
     tabTems = []
   }
 
+  if (card.execSuccess === 'view' || card.execSuccess === 'refresh') { // refresh涓鸿〃鍗曟爣绛鹃〉
+    card.execSuccess = 'grid'
+  }
+  if (card.execError === 'view' || card.execSuccess === 'refresh') {
+    card.execError = 'grid'
+  }
+  if (card.popClose === 'view') {
+    card.popClose = 'grid'
+  }
+
   let refresh = []
   if (type === 'subtable') { // 瀛愯〃椤甸潰锛屽彲璁剧疆鍒锋柊涓昏〃鍙婂悓绾ф爣绛�
     refresh.push({
@@ -641,9 +651,6 @@
     }, {
       value: 'equaltab',
       text: Formdict['header.form.refresh.equaltab']
-    // }, {
-    //   value: 'mainline',
-    //   text: Formdict['header.form.refresh.mainline']
     })
   }
 
@@ -878,7 +885,7 @@
       options: menulist
     },
     {
-      type: 'select',
+      type: 'radio',
       key: 'afterExecSuccess',
       label: Formdict['header.form.afterExecSuccess'],
       initVal: card.afterExecSuccess || 'close',
@@ -892,7 +899,7 @@
       }]
     },
     {
-      type: 'select',
+      type: 'radio',
       key: 'afterExecError',
       label: Formdict['header.form.afterExecError'],
       initVal: card.afterExecError || 'notclose',
@@ -906,7 +913,7 @@
       }]
     },
     {
-      type: 'select',
+      type: refresh.length === 0 ? 'radio' : 'select',
       key: 'execSuccess',
       label: Formdict['model.form.afterSuccess'],
       initVal: card.execSuccess || 'never',
@@ -917,14 +924,11 @@
       }, {
         value: 'grid',
         text: Formdict['header.form.refresh.grid']
-      }, {
-        value: 'view',
-        text: Formdict['header.form.refresh.view']
       },
       ...refresh]
     },
     {
-      type: 'select',
+      type: refresh.length === 0 ? 'radio' : 'select',
       key: 'execError',
       label: Formdict['model.form.afterError'],
       initVal: card.execError || 'never',
@@ -935,13 +939,11 @@
       }, {
         value: 'grid',
         text: Formdict['header.form.refresh.grid']
-      }, {
-        value: 'view',
-        text: Formdict['header.form.refresh.view']
-      }]
+      },
+      ...refresh]
     },
     {
-      type: 'select',
+      type: refresh.length === 0 ? 'radio' : 'select',
       key: 'popClose',
       label: Formdict['header.form.popClose'],
       initVal: card.popClose || 'never',
@@ -952,13 +954,24 @@
       }, {
         value: 'grid',
         text: Formdict['header.form.refresh.grid']
-      }, {
-        value: 'view',
-        text: Formdict['header.form.refresh.view']
       },
       ...refresh]
     },
     {
+      type: 'radio',
+      key: 'resetPageIndex',
+      label: '鍒锋柊鏃�',
+      initVal: card.resetPageIndex || 'true',
+      required: false,
+      options: [{
+        value: 'true',
+        text: '閲嶇疆椤电爜'
+      }, {
+        value: 'false',
+        text: '涓嶉噸缃�'
+      }]
+    },
+    {
       type: 'select',
       key: 'icon',
       label: Formdict['model.icon'],

--
Gitblit v1.8.0