From d59f518f466274b2caeb2e01c10c92deafe7c93b Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 09 二月 2022 11:48:29 +0800 Subject: [PATCH] 2022-02-09 --- src/menu/components/form/formaction/formconfig.jsx | 33 +++++++++++++++------------------ 1 files changed, 15 insertions(+), 18 deletions(-) diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx index c0e6f61..63770ba 100644 --- a/src/menu/components/form/formaction/formconfig.jsx +++ b/src/menu/components/form/formaction/formconfig.jsx @@ -25,19 +25,21 @@ try { menulist = JSON.parse(menulist) menulist = menulist.map(item => ({value: item.MenuID, text: item.MenuName})) - } catch { + } catch (e) { menulist = [] } } else { menulist = [] } - menulist.unshift({value: '', text: '鏃�'}) + if (appType === 'mob') { + menulist.push({value: 'goback', text: '杩斿洖'}) + } } else { menulist = sessionStorage.getItem('fstMenuList') if (menulist) { try { menulist = JSON.parse(menulist) - } catch { + } catch (e) { menulist = [] } } else { @@ -248,7 +250,16 @@ tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��', initVal: card.linkmenu, required: false, + allowClear: true, options: menulist + }, + { + type: 'text', + key: 'output', + label: '杩斿洖鍊�', + tooltip: '鎵ц鎴愬姛鍚庣殑杩斿洖鍊笺��', + initVal: card.output || '', + required: false }, { type: 'radio', @@ -273,20 +284,6 @@ tooltip: '鎵ц鎴愬姛鍚庨渶瑕佸埛鏂扮殑缁勪欢銆�', required: false, options: modules - }, - { - type: 'radio', - key: 'enable', - label: '鏄惁鏄剧ず', - initVal: card.enable || 'false', - required: false, - options: [{ - value: 'true', - text: '鏄剧ず' - }, { - value: 'false', - text: '闅愯棌' - }] - }, + } ] } -- Gitblit v1.8.0