From 977e6195d7d6a48769563cf90bfc307fb2ef6f2d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 14 十一月 2023 22:29:32 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/menu/components/form/formaction/formconfig.jsx | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 deletions(-) diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx index 978be6e..f6800ae 100644 --- a/src/menu/components/form/formaction/formconfig.jsx +++ b/src/menu/components/form/formaction/formconfig.jsx @@ -4,7 +4,7 @@ * @param {*} type 鎸夐挳绫诲瀷锛岀敤浜庡尯鍒嗗彲閫夌殑鎵撳紑鏂瑰紡 */ -export function getActionForm (card, functip, tableName, usefulFields, modules, anchors, uuid) { +export function getActionForm (card, functip, tableName, usefulFields, modules, anchors, uuid, fields) { const appType = sessionStorage.getItem('appType') let viewType = sessionStorage.getItem('editMenuType') // 寮圭獥 popview let _type = '鎻愪氦' @@ -122,6 +122,16 @@ text: '鍒锋柊婧愮粍浠�' }) } + + let resets = [] + fields.forEach(item => { + if (item.type !== 'text' && item.type !== 'number') return + + resets.push({ + value: item.field, + text: item.label + }) + }) return [ { @@ -476,6 +486,16 @@ options: linkButtons }, { + type: 'select', + key: 'resetForms', + label: '閲嶇疆琛ㄥ崟', + tooltip: '鎸夐挳鎵ц鎴愬姛鍚庨渶瑕侀噸缃殑琛ㄥ崟锛岃〃鍗曚細鎭㈠榛樿鍊煎苟鑱氱劍銆�', + initVal: card.resetForms || [], + required: false, + mode: 'multiple', + options: resets + }, + { type: 'radio', key: 'reload', label: '涓婁竴椤�', -- Gitblit v1.8.0