From 137fb8ea6af2789b3238b22bac31d80bced41dfe Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 28 七月 2021 11:39:39 +0800 Subject: [PATCH] 2021-07-28 --- src/menu/components/form/formaction/formconfig.jsx | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/menu/components/form/formaction/formconfig.jsx b/src/menu/components/form/formaction/formconfig.jsx index 1a84804..6eb2048 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: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��', @@ -256,7 +256,7 @@ label: '鎵撳紑鏂瑰紡', initVal: card.open || 'blank', required: false, - forbid: !isApp, + forbid: appType !== 'pc', options: [{ value: 'blank', text: '鏂扮獥鍙�' @@ -278,7 +278,7 @@ type: 'radio', key: 'enable', label: '鏄惁鏄剧ず', - initVal: card.enable || 'false', + initVal: card.enable || 'true', required: false, options: [{ value: 'true', -- Gitblit v1.8.0