From d1dbe184ea1026e20a202ac9f8f7c8c049665ae3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 10 一月 2024 17:04:26 +0800
Subject: [PATCH] 2024-01-10

---
 src/menu/components/form/formaction/formconfig.jsx |   28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx
index 75d27e3..dbec712 100644
--- a/src/menu/components/form/formaction/formconfig.jsx
+++ b/src/menu/components/form/formaction/formconfig.jsx
@@ -125,18 +125,13 @@
 
   let resets = []
   fields.forEach(item => {
-    if (item.hidden === 'true') return
     if (item.type !== 'text' && item.type !== 'number') return
 
     resets.push({
-      value: item.uuid,
+      value: item.field,
       text: item.label
     })
   })
-
-  if (card.resetForm && resets.findIndex(item => item.value === card.resetForm) === -1) {
-    card.resetForm = ''
-  }
 
   return [
     {
@@ -492,12 +487,12 @@
     },
     {
       type: 'select',
-      key: 'resetForm',
+      key: 'resetForms',
       label: '閲嶇疆琛ㄥ崟',
       tooltip: '鎸夐挳鎵ц鎴愬姛鍚庨渶瑕侀噸缃殑琛ㄥ崟锛岃〃鍗曚細鎭㈠榛樿鍊煎苟鑱氱劍銆�',
-      initVal: card.resetForm || '',
+      initVal: card.resetForms || [],
       required: false,
-      allowClear: true,
+      mode: 'multiple',
       options: resets
     },
     {
@@ -515,5 +510,20 @@
         text: '鍒锋柊'
       }]
     },
+    {
+      type: 'radio',
+      key: 'formCache',
+      label: '琛ㄥ崟缂撳瓨',
+      initVal: card.formCache || 'false',
+      tooltip: '涓昏鐢ㄤ簬鏁版嵁淇敼鍚庯紝鏇存柊鐩稿叧琛ㄥ崟鐨勯�夐」锛屾竻绌虹紦瀛樺悗琛ㄥ崟鍐嶆鎵撳紑鏃舵暟鎹細閲嶆柊鍔犺浇銆�',
+      required: false,
+      options: [{
+        value: 'false',
+        text: '涓嶆竻绌�'
+      }, {
+        value: 'clear',
+        text: '娓呯┖'
+      }]
+    },
   ]
 }

--
Gitblit v1.8.0