From bebeca442cee4b83de0d00df29a6514b3f723c4f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 28 七月 2021 13:41:06 +0800 Subject: [PATCH] 2021-07-28 --- src/menu/components/share/actioncomponent/formconfig.jsx | 27 +++++++++++++-------------- 1 files changed, 13 insertions(+), 14 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 9667f90..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 }, @@ -204,14 +209,6 @@ forbid: !isApp, options: appMenus }, - // { - // type: 'select', - // key: 'copyMenuId', - // label: '澶嶅埗鑿滃崟', - // initVal: card.copyMenuId || '', - // required: false, - // options: appMenus - // }, { type: 'textarea', key: 'url', @@ -531,7 +528,8 @@ tooltip: '绂佺敤鎺у埗瀛楁锛屽彲鏍规嵁鏁版嵁鎺у埗鎸夐挳鏄惁绂佺敤銆�', initVal: card.controlField || '', required: false, - options: [{label: '鏃�', field: ''}, ...columns] + allowClear: true, + options: columns }, { type: 'text', @@ -546,10 +544,11 @@ key: 'openmenu', label: '鎵撳紑鑿滃崟', tooltip: '鎵ц鎴愬姛鍚庨渶瑕佹墦寮�鐨勮彍鍗曘��', - initVal: card.openmenu, + initVal: card.openmenu || '', forbid: appType !== 'pc' && appType !== 'mob', required: false, - options: [{value: '', text: '鏃�'}, ...appMenus] + allowClear: true, + options: appMenus }, { type: 'radio', -- Gitblit v1.8.0