From c1844ae65c6ac4704d8a59e18510ed5c676de697 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 09 七月 2021 18:39:53 +0800 Subject: [PATCH] 2021-07-09 --- src/menu/components/share/actioncomponent/formconfig.jsx | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index edf6181..b038d5c 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 }, -- Gitblit v1.8.0