From e5fc2d92b1036aabf9ffc2c9706ed401bd9735c8 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 09 九月 2021 18:14:29 +0800 Subject: [PATCH] 2021-09-09 --- src/menu/components/share/actioncomponent/formconfig.jsx | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index c423af5..6eb2dad 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -56,7 +56,8 @@ let funTypes = [ { value: 'changeuser', text: Formdict['header.form.func.changeuser'] }, - { value: 'print', text: '鏍囩鎵撳嵃' } + { value: 'print', text: '鏍囩鎵撳嵃' }, + { value: 'closetab', text: '鏍囩鍏抽棴' }, ] if (isApp) { @@ -74,7 +75,7 @@ if (appMenus) { try { appMenus = JSON.parse(appMenus) - } catch { + } catch (e) { appMenus = [] } } else { @@ -86,7 +87,7 @@ funTypes = [ { value: 'mkBinding', text: '寮�閫氭壂鐮佺櫥褰�' }, { value: 'mkUnBinding', text: '鐢ㄦ埛瑙g粦' }, - { value: 'scan', text: '鎵竴鎵�' }, + // { value: 'scan', text: '鎵竴鎵�' }, { value: 'reAuth', text: '閲嶆柊鎺堟潈' }, ] } else { @@ -117,7 +118,7 @@ options: opentypes }, { - type: 'radio', + type: 'select', key: 'funcType', label: Formdict['header.form.funcType'], initVal: card.funcType || '', @@ -333,6 +334,15 @@ label: Formdict['model.form.linkmenu'], initVal: card.linkmenu || [], required: true, + forbid: isApp, + options: menulist + }, + { + type: 'cascader', + key: 'refreshTab', + label: '鍒锋柊鏍囩', + initVal: card.refreshTab || [], + required: false, forbid: isApp, options: menulist }, @@ -553,7 +563,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