From f497f734966504bd8a7e98bf602da582a53d91e5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 12 九月 2021 02:55:59 +0800 Subject: [PATCH] 2021-09-12 --- src/menu/components/share/actioncomponent/formconfig.jsx | 52 ++++++++++++++++++++++++++++++---------------------- 1 files changed, 30 insertions(+), 22 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 04945f0..59cc710 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -61,16 +61,6 @@ ] if (isApp) { - pageTemps = [ - // { value: 'page', text: '鑿滃崟' }, - { value: 'linkpage', text: '鍏宠仈鑿滃崟' }, - { value: 'billprint', text: '鍗曟嵁鎵撳嵃' }, - { value: 'pay', text: Formdict['model.pay'] }, - { value: 'custom', text: '閾炬帴' } - ] - funTypes = [ - { value: 'changeuser', text: Formdict['header.form.func.changeuser'] }, - ] appMenus = sessionStorage.getItem('appMenus') if (appMenus) { try { @@ -87,10 +77,23 @@ funTypes = [ { value: 'mkBinding', text: '寮�閫氭壂鐮佺櫥褰�' }, { value: 'mkUnBinding', text: '鐢ㄦ埛瑙g粦' }, - { value: 'scan', text: '鎵竴鎵�' }, { value: 'reAuth', text: '閲嶆柊鎺堟潈' }, ] + pageTemps = [ + { value: 'linkpage', text: '鍏宠仈鑿滃崟' }, + // { value: 'pay', text: Formdict['model.pay'] }, + { value: 'custom', text: '閾炬帴' } + ] } else { + pageTemps = [ + { value: 'linkpage', text: '鍏宠仈鑿滃崟' }, + { value: 'billprint', text: '鍗曟嵁鎵撳嵃' }, + { value: 'pay', text: Formdict['model.pay'] }, + { value: 'custom', text: '閾炬帴' } + ] + funTypes = [ + { value: 'changeuser', text: Formdict['header.form.func.changeuser'] }, + ] opentypes = opentypes.filter(item => item.value !== 'tab') } } @@ -338,15 +341,6 @@ options: menulist }, { - type: 'cascader', - key: 'refreshTab', - label: '鍒锋柊鏍囩', - initVal: card.refreshTab || [], - required: false, - forbid: isApp, - options: menulist - }, - { type: 'select', key: 'execSuccess', label: Formdict['model.form.afterSuccess'], @@ -362,6 +356,9 @@ }, { value: 'mainline', text: '鍒锋柊涓婄骇缁勪欢 - 琛�' + }, { + value: 'closetab', + text: '鍏抽棴鏍囩' }, ...refresh] }, @@ -531,10 +528,21 @@ { type: 'mcascader', key: 'syncComponent', - label: '鍚屾鍒锋柊', + label: '鍒锋柊缁勪欢', initVal: card.syncComponent || [], + tooltip: '鎵ц鎴愬姛鍚庯紝闇�瑕佸悓姝ュ埛鏂扮殑缁勪欢', required: false, options: modules + }, + { + type: 'cascader', + key: 'refreshTab', + label: '鍒锋柊鏍囩', + initVal: card.refreshTab || [], + tooltip: '鎵ц鎴愬姛鍚庢垨鏍囩鍏抽棴鏃讹紝闇�瑕佸悓姝ュ埛鏂扮殑鏍囩', + required: false, + forbid: isApp, + options: menulist }, { type: 'select', @@ -563,7 +571,7 @@ forbid: appType !== 'pc' && appType !== 'mob', required: false, allowClear: true, - options: appMenus + options: appType !== 'mob' ? appMenus : [...appMenus, {value: 'goback', text: '杩斿洖'}] }, { type: 'text', -- Gitblit v1.8.0