From ef8acbf3859bd13e759fbb9b8ba726039c1fb2c5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 14 十一月 2023 15:51:59 +0800
Subject: [PATCH] 2023-11-14

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

diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx
index 75d27e3..f6800ae 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
     },
     {

--
Gitblit v1.8.0