From b69b5f6329ca5f87932436b7a6c1ddfc3377e10f Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 16 五月 2024 10:56:41 +0800
Subject: [PATCH] 2024-05-16

---
 src/menu/components/form/formaction/formconfig.jsx |   76 ++++++++++++++++++++++++++++++-------
 1 files changed, 61 insertions(+), 15 deletions(-)

diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx
index 75d27e3..e3bc348 100644
--- a/src/menu/components/form/formaction/formconfig.jsx
+++ b/src/menu/components/form/formaction/formconfig.jsx
@@ -123,20 +123,30 @@
     })
   }
 
+  let closetab = []
+  if (!appType && viewType !== 'popview') {
+    closetab = [{
+      value: 'closetab',
+      text: '鍏抽棴鏍囩'
+    }]
+  }
+
   let resets = []
   fields.forEach(item => {
-    if (item.hidden === 'true') return
     if (item.type !== 'text' && item.type !== 'number') return
 
-    resets.push({
-      value: item.uuid,
-      text: item.label
-    })
+    if (item.label !== item.field) {
+      resets.push({
+        value: item.field,
+        text: item.label + ' (' + item.field + ')'
+      })
+    } else {
+      resets.push({
+        value: item.field,
+        text: item.label
+      })
+    }
   })
-
-  if (card.resetForm && resets.findIndex(item => item.value === card.resetForm) === -1) {
-    card.resetForm = ''
-  }
 
   return [
     {
@@ -244,7 +254,7 @@
       initVal: card.innerFunc || '',
       tooltip: functip,
       fields: usefulFields,
-      tooltipClass: 'middle',
+      toolWidth: 350,
       required: true,
       readonly: false
     },
@@ -429,7 +439,20 @@
       }, {
         value: 'mainline',
         text: '鍒锋柊涓婄骇缁勪欢 - 琛�'
-      }, ...refresh]
+      }, {
+        value: 'maingrid',
+        text: '鍒锋柊涓婄骇缁勪欢'
+      }, ...closetab, ...refresh]
+    },
+    {
+      type: 'cascader',
+      key: 'refreshTab',
+      label: '鍒锋柊鑿滃崟',
+      initVal: card.refreshTab || [],
+      tooltip: '鎵ц鎴愬姛鍚庯紙鎴栧姛鑳芥寜閽腑鏍囩鍏抽棴绫诲瀷锛夛紝闇�瑕佸悓姝ュ埛鏂扮殑鑿滃崟',
+      required: false,
+      forbid: appType === 'pc' || appType === 'mob' || viewType === 'popview',
+      options: menulist
     },
     {
       type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader',
@@ -472,6 +495,15 @@
       options: modules
     },
     {
+      type: 'number',
+      key: 'syncDelay',
+      label: '鍒锋柊寤惰繜',
+      initVal: card.syncDelay,
+      tooltip: '鍚屾鍒锋柊缁勪欢鐨勫欢杩熸椂闂达紝鍗曚綅姣銆�',
+      // placeholder: '鍗曚綅姣',
+      required: false
+    },
+    {
       type: 'cascader',
       key: 'anchors',
       label: '璺宠浆閿氱偣',
@@ -492,13 +524,27 @@
     },
     {
       type: 'select',
-      key: 'resetForm',
+      key: 'resetForms',
       label: '閲嶇疆琛ㄥ崟',
       tooltip: '鎸夐挳鎵ц鎴愬姛鍚庨渶瑕侀噸缃殑琛ㄥ崟锛岃〃鍗曚細鎭㈠榛樿鍊煎苟鑱氱劍銆�',
-      initVal: card.resetForm || '',
+      initVal: card.resetForms || [],
       required: false,
-      allowClear: true,
+      mode: 'multiple',
       options: resets
+    },
+    {
+      type: 'radio',
+      key: 'returnValue',
+      label: '鏇存柊琛ㄥ崟',
+      initVal: card.returnValue || 'false',
+      tooltip: '涓庨噸缃〃鍗曢厤鍚堜娇鐢紝寮�鍚椂锛屽繀椤诲湪鑷畾涔夎剼鏈腑杩斿洖鏁版嵁锛岀敤浜庢浛鎹㈠瓧娈甸泦鍜屽~鍏呰〃鍗曘��',
+      options: [{
+        value: 'false',
+        text: '绂佺敤'
+      }, {
+        value: 'true',
+        text: '鍚敤'
+      }]
     },
     {
       type: 'radio',
@@ -514,6 +560,6 @@
         value: 'true',
         text: '鍒锋柊'
       }]
-    },
+    }
   ]
 }

--
Gitblit v1.8.0