From 72419e2f826031a158173f46d723a672064e37cd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 八月 2021 22:42:51 +0800 Subject: [PATCH] 2021-08-31 --- src/menu/components/form/formaction/formconfig.jsx | 32 +++++++++++++------------------- 1 files changed, 13 insertions(+), 19 deletions(-) diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx index 1a84804..808208b 100644 --- a/src/menu/components/form/formaction/formconfig.jsx +++ b/src/menu/components/form/formaction/formconfig.jsx @@ -10,7 +10,7 @@ */ export function getActionForm (card, functip, tableName, usefulFields, modules) { - const isApp = sessionStorage.getItem('appType') === 'pc' + const appType = sessionStorage.getItem('appType') let _type = '鎻愪氦' if (card.type === 'prev') { _type = '涓婁竴姝�' @@ -19,7 +19,7 @@ } let menulist = [] - if (isApp) { + if (appType === 'pc' || appType === 'mob') { menulist = sessionStorage.getItem('appMenus') if (menulist) { try { @@ -242,7 +242,7 @@ readonly: false }, { - type: isApp ? 'select' : 'cascader', + type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader', key: 'linkmenu', label: '鎵撳紑鑿滃崟', tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��', @@ -251,12 +251,20 @@ options: menulist }, { + type: 'text', + key: 'output', + label: '杩斿洖鍊�', + tooltip: '鎵ц鎴愬姛鍚庣殑杩斿洖鍊笺��', + initVal: card.output || '', + required: false + }, + { type: 'radio', key: 'open', label: '鎵撳紑鏂瑰紡', initVal: card.open || 'blank', required: false, - forbid: !isApp, + forbid: appType !== 'pc', options: [{ value: 'blank', text: '鏂扮獥鍙�' @@ -273,20 +281,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