From 0227c25e4ed573d3095ada3f9c9a4ba5f18b0de5 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 20 一月 2021 10:53:01 +0800 Subject: [PATCH] 2021-01-20 --- src/menu/components/share/actioncomponent/formconfig.jsx | 107 +++++++++++++++++++++++++++-------------------------- 1 files changed, 55 insertions(+), 52 deletions(-) diff --git a/src/menu/components/share/actioncomponent/formconfig.jsx b/src/menu/components/share/actioncomponent/formconfig.jsx index cc54bcd..0444ac7 100644 --- a/src/menu/components/share/actioncomponent/formconfig.jsx +++ b/src/menu/components/share/actioncomponent/formconfig.jsx @@ -44,15 +44,16 @@ ] if (type === 'chart') { - opentypes = [ - { - value: 'excelIn', - text: Formdict['model.form.excelIn'] - }, { - value: 'excelOut', - text: Formdict['model.form.excelOut'] - } - ] + opentypes = opentypes.filter(item => item.value === 'excelIn' || item.value === 'excelOut') + } + + let refresh = [] + if (sessionStorage.getItem('editMenuType') === 'popview') { // 寮圭獥鏍囩 + opentypes = opentypes.filter(item => item.value !== 'popview' && item.value !== 'funcbutton') + refresh.push({ + value: 'popclose', + text: '鏍囩鍒锋柊' + }) } let forms = [ @@ -71,8 +72,11 @@ initVal: card.funcType || 'print', required: true, options: [{ + value: 'changeuser', + text: Formdict['header.form.func.changeuser'] + }, { value: 'print', - text: Formdict['header.form.func.print'] + text: '鏍囩鎵撳嵃' }] }, { @@ -223,73 +227,72 @@ options: menulist }, { - type: 'radio', - key: 'afterExecSuccess', - label: Formdict['header.form.afterExecSuccess'], - initVal: card.afterExecSuccess || 'close', - required: true, - options: [{ - value: 'close', - text: Formdict['model.close'] - }, { - value: 'notclose', - text: Formdict['model.notclose'] - }] - }, - { - type: 'radio', - key: 'afterExecError', - label: Formdict['header.form.afterExecError'], - initVal: card.afterExecError || 'notclose', - required: true, - options: [{ - value: 'close', - text: Formdict['model.close'] - }, { - value: 'notclose', - text: Formdict['model.notclose'] - }] - }, - { - type: 'radio', + type: 'select', key: 'execSuccess', label: Formdict['model.form.afterSuccess'], initVal: card.execSuccess || 'never', + tooltip: refresh.length ? '鎵ц鏍囩鍒锋柊鏃讹紝浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻��' : '鍒锋柊涓婄骇缁勪欢-琛屾椂锛屼細鍚屾鍒锋柊褰撳墠缁勪欢锛屾敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆�', required: true, options: [{ - value: 'grid', - text: Formdict['header.form.refresh'] - }, { value: 'never', text: Formdict['header.form.refresh.never'] - }] + }, { + value: 'grid', + text: '鍒锋柊褰撳墠缁勪欢' + }, { + value: 'mainline', + text: '鍒锋柊涓婄骇缁勪欢 - 琛�' + }, + ...refresh] }, { - type: 'radio', + type: 'select', key: 'execError', label: Formdict['model.form.afterError'], initVal: card.execError || 'never', + tooltip: refresh.length ? '鎵ц鏍囩鍏抽棴鍒锋柊鏃讹紝浼氬悓姝ュ埛鏂板綋鍓嶇粍浠跺拰涓婄骇缁勪欢-琛屻��' : '鍒锋柊涓婄骇缁勪欢-琛屾椂锛屼細鍚屾鍒锋柊褰撳墠缁勪欢锛屾敞锛氫笂绾х粍浠跺湪鏁版嵁婧愪腑娣诲姞銆�', required: true, options: [{ - value: 'grid', - text: Formdict['header.form.refresh'] - }, { value: 'never', text: Formdict['header.form.refresh.never'] - }] + }, { + value: 'grid', + text: '鍒锋柊褰撳墠缁勪欢' + }, { + value: 'mainline', + text: '鍒锋柊涓婄骇缁勪欢 - 琛�' + }, + ...refresh] }, { - type: 'radio', + type: 'select', key: 'popClose', label: Formdict['header.form.popClose'], initVal: card.popClose || 'never', required: true, options: [{ - value: 'grid', - text: Formdict['header.form.refresh'] - }, { value: 'never', text: Formdict['header.form.refresh.never'] + }, { + value: 'grid', + text: '鍒锋柊褰撳墠缁勪欢' + }, { + value: 'mainline', + text: '鍒锋柊涓婄骇缁勪欢 - 琛�' + }] + }, + { + type: 'radio', + key: 'resetPageIndex', + label: '鍒锋柊鏃�', + initVal: card.resetPageIndex || 'true', + required: false, + options: [{ + value: 'true', + text: '閲嶇疆椤电爜' + }, { + value: 'false', + text: '涓嶉噸缃�' }] }, { -- Gitblit v1.8.0