From 55a1b8402fd258da084df9b8a3935eef8450247c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 01 八月 2021 18:03:02 +0800 Subject: [PATCH] 2021-08-01 --- src/menu/components/share/actioncomponent/formconfig.jsx | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index edf6181..29b9405 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -60,7 +60,6 @@ ] if (isApp) { - opentypes = opentypes.filter(item => item.value !== 'tab') pageTemps = [ // { value: 'page', text: '鑿滃崟' }, { value: 'linkpage', text: '鍏宠仈鑿滃崟' }, @@ -82,9 +81,15 @@ } else { appMenus = [] } + + if (appType === 'mob') { + opentypes = opentypes.filter(item => ['pop', 'prompt', 'exec', 'innerpage'].includes(item.value)) + } else { + opentypes = opentypes.filter(item => item.value !== 'tab') + } } - if (type === 'chart') { + if (type === 'chart' && appType !== 'mob') { opentypes = opentypes.filter(item => item.value === 'excelIn' || item.value === 'excelOut') } @@ -110,7 +115,7 @@ type: 'radio', key: 'funcType', label: Formdict['header.form.funcType'], - initVal: card.funcType || (isApp ? 'changeuser' : ''), + initVal: card.funcType || '', required: true, options: funTypes }, @@ -410,7 +415,7 @@ { type: 'radio', key: 'show', - label: "鏄剧ず涓�", + label: '鏄剧ず涓�', initVal: card.show || 'button', required: true, options: [{ -- Gitblit v1.8.0