From f0bf8c399c354c22227f8f1a76ed806098db59c0 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 21 五月 2024 16:51:02 +0800 Subject: [PATCH] 2024-05-21 --- src/menu/components/form/formaction/formconfig.jsx | 42 ++++++++++++++++++++++++------------------ 1 files changed, 24 insertions(+), 18 deletions(-) diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx index 1a4e306..e3bc348 100644 --- a/src/menu/components/form/formaction/formconfig.jsx +++ b/src/menu/components/form/formaction/formconfig.jsx @@ -123,6 +123,14 @@ }) } + let closetab = [] + if (!appType && viewType !== 'popview') { + closetab = [{ + value: 'closetab', + text: '鍏抽棴鏍囩' + }] + } + let resets = [] fields.forEach(item => { if (item.type !== 'text' && item.type !== 'number') return @@ -246,7 +254,7 @@ initVal: card.innerFunc || '', tooltip: functip, fields: usefulFields, - tooltipClass: 'middle', + toolWidth: 350, required: true, readonly: false }, @@ -431,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', @@ -539,21 +560,6 @@ value: 'true', text: '鍒锋柊' }] - }, - // { - // type: 'radio', - // key: 'formCache', - // label: '琛ㄥ崟缂撳瓨', - // initVal: card.formCache || 'false', - // tooltip: '涓昏鐢ㄤ簬鏁版嵁淇敼鍚庯紝鏇存柊鐩稿叧琛ㄥ崟鐨勯�夐」锛屾竻绌虹紦瀛樺悗琛ㄥ崟鍐嶆鎵撳紑鏃舵暟鎹細閲嶆柊鍔犺浇銆�', - // required: false, - // options: [{ - // value: 'false', - // text: '涓嶆竻绌�' - // }, { - // value: 'clear', - // text: '娓呯┖' - // }] - // }, + } ] } -- Gitblit v1.8.0