From 8e8f505f37ecc4e6945e7d0d6e9883e4e9352437 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 10 十一月 2022 23:59:47 +0800 Subject: [PATCH] 2022-11-10 --- src/menu/components/share/actioncomponent/formconfig.jsx | 102 +++++++++++++++++++++++++++++++++++++++++++-------- 1 files changed, 86 insertions(+), 16 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index 22eae11..e8a9f57 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -126,7 +126,7 @@ } } if (appType === 'mob') { - opentypes = opentypes.filter(item => ['pop', 'prompt', 'exec', 'innerpage', 'funcbutton'].includes(item.value)) + opentypes = opentypes.filter(item => ['pop', 'prompt', 'exec', 'excelOut', 'innerpage', 'funcbutton'].includes(item.value)) funTypes = [ { value: 'scan', text: '鎵爜' }, { value: 'pay', text: '鏀粯' }, @@ -201,7 +201,7 @@ } let closetab = [] - if (!appType) { + if (!appType && viewType !== 'popview') { closetab = [{ value: 'closetab', text: '鍏抽棴鏍囩' @@ -391,15 +391,19 @@ { type: 'radio', key: 'sysInterface', - label: '绯荤粺鎺ュ彛', + label: '绯荤粺绫诲瀷', initVal: card.sysInterface || 'false', + tooltip: '涓氬姟绯荤粺鎸囧悓涓�sso涓嬬殑鍏朵粬涓氬姟绯荤粺锛屽閮ㄧ郴缁熸寚涓嶅悓sso涓嬬殑鍏朵粬涓氬姟绯荤粺銆�', required: true, options: [{ - value: 'true', - text: '鏄�' - }, { value: 'false', - text: '鍚�' + text: '涓氬姟' + }, { + value: 'true', + text: '鍗曠偣' + }, { + value: 'external', + text: '澶栭儴' }] }, { @@ -422,6 +426,21 @@ key: 'proInterface', label: '姝e紡鍦板潃', initVal: card.proInterface || '', + tooltip: '姝e紡绯荤粺鎵�浣跨敤鐨勬帴鍙e湴鍧�銆�', + required: false + }, + { + type: 'keyinterface', + key: 'exInterface', + label: '娴嬭瘯鍦板潃', + initVal: card.exInterface || '', + required: true + }, + { + type: 'keyinterface', + key: 'exProInterface', + label: '姝e紡鍦板潃', + initVal: card.exProInterface || '', tooltip: '姝e紡绯荤粺鎵�浣跨敤鐨勬帴鍙e湴鍧�銆�', required: false }, @@ -697,7 +716,8 @@ }, { value: 'false', text: '鍚�' - }] + }], + forbid: appType === 'mob' }, { type: 'radio', @@ -711,7 +731,8 @@ }, { value: 'false', text: '闈炲繀濉�' - }] + }], + forbid: appType === 'mob' }, { type: 'cascader', @@ -1029,13 +1050,12 @@ * @param {*} setting 缁勪欢閰嶇疆 * @param {*} usefulFields 瀛樺偍杩囩▼鍙敤鐨勫紑濮嬪瓧娈� */ -export function getBaseTableActionForm (card, functip, config, usefulFields) { +export function getBaseTableActionForm (card, functip, config, usefulFields, modules) { let viewType = sessionStorage.getItem('editMenuType') // 寮圭獥 popview let printTemps = sessionStorage.getItem('printTemps') printTemps = printTemps ? JSON.parse(printTemps) : [] let setting = config.setting || {} let columns = config.columns || [] - let modules = [] let opentypes = [ { @@ -1069,6 +1089,8 @@ ] let pageTemps = [ + // { value: 'print', text: '鏍囩鎵撳嵃妯℃澘' }, + // { value: 'billprintTemp', text: '鍗曟嵁鎵撳嵃妯℃澘' }, { value: 'billprint', text: '鍗曟嵁鎵撳嵃' }, { value: 'pay', text: '鏀粯' }, { value: 'custom', text: '鑷畾涔�' } @@ -1265,15 +1287,19 @@ { type: 'radio', key: 'sysInterface', - label: '绯荤粺鎺ュ彛', + label: '绯荤粺绫诲瀷', initVal: card.sysInterface || 'false', + tooltip: '涓氬姟绯荤粺鎸囧悓涓�sso涓嬬殑鍏朵粬涓氬姟绯荤粺锛屽閮ㄧ郴缁熸寚涓嶅悓sso涓嬬殑鍏朵粬涓氬姟绯荤粺銆�', required: true, options: [{ - value: 'true', - text: '鏄�' - }, { value: 'false', - text: '鍚�' + text: '涓氬姟' + }, { + value: 'true', + text: '鍗曠偣' + }, { + value: 'external', + text: '澶栭儴' }] }, { @@ -1296,6 +1322,21 @@ key: 'proInterface', label: '姝e紡鍦板潃', initVal: card.proInterface || '', + tooltip: '姝e紡绯荤粺鎵�浣跨敤鐨勬帴鍙e湴鍧�銆�', + required: false + }, + { + type: 'keyinterface', + key: 'exInterface', + label: '娴嬭瘯鍦板潃', + initVal: card.exInterface || '', + required: true + }, + { + type: 'keyinterface', + key: 'exProInterface', + label: '姝e紡鍦板潃', + initVal: card.exProInterface || '', tooltip: '姝e紡绯荤粺鎵�浣跨敤鐨勬帴鍙e湴鍧�銆�', required: false }, @@ -1447,6 +1488,35 @@ }] }, { + type: 'number', + key: 'width', + min: 1, + max: 24, + precision: 0, + label: '瀹藉害', + initVal: card.width || 12, + tooltip: '鏍呮牸甯冨眬锛屾瘡琛岀瓑鍒嗕负24鍒椼��', + forbid: card.eleType !== 'button', + required: true + }, + { + type: 'radio', + key: 'show', + label: '鏄剧ず涓�', + initVal: card.show || 'button', + required: true, + options: [{ + value: 'icon', + text: '鍥炬爣' + }, { + value: 'button', + text: '鍥炬爣+鏂囧瓧' + }, { + value: 'link', + text: '鏂囧瓧+鍥炬爣' + }] + }, + { type: 'icon', key: 'icon', label: '鍥炬爣', -- Gitblit v1.8.0