From 9d3c77a83bc4e7febbfb8fd05de2f90100c5af6c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 15 一月 2024 17:52:42 +0800 Subject: [PATCH] 2024-01-15 --- src/menu/components/form/formaction/formconfig.jsx | 50 ++++++++++++++++++++++++++++++++++++++------------ 1 files changed, 38 insertions(+), 12 deletions(-) diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx index 75d27e3..27c9159 100644 --- a/src/menu/components/form/formaction/formconfig.jsx +++ b/src/menu/components/form/formaction/formconfig.jsx @@ -125,18 +125,20 @@ 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 [ { @@ -472,6 +474,15 @@ options: modules }, { + type: 'number', + key: 'syncDelay', + label: '鍒锋柊寤惰繜', + initVal: card.syncDelay, + tooltip: '鍚屾鍒锋柊缁勪欢鐨勫欢杩熸椂闂达紝鍗曚綅姣銆�', + // placeholder: '鍗曚綅姣', + required: false + }, + { type: 'cascader', key: 'anchors', label: '璺宠浆閿氱偣', @@ -492,12 +503,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 +526,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