From 720c46d6d498dd0d28f5b9f51c9d0421105e9946 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 26 一月 2021 18:30:35 +0800 Subject: [PATCH] 2021-01-26 --- src/templates/sharecomponent/actioncomponent/actionform/index.jsx | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx index 9f45bd7..6310dc9 100644 --- a/src/templates/sharecomponent/actioncomponent/actionform/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/actionform/index.jsx @@ -189,13 +189,13 @@ } } else if (_opentype === 'excelOut') { // 瀵煎叆瀵煎嚭 if (_intertype === 'outer') { - _options.push('innerFunc', 'sysInterface', 'interface', 'outerFunc') + _options.push('innerFunc', 'sysInterface', 'interface', 'proInterface', 'outerFunc') } else if (_intertype === 'inner') { _options.push('innerFunc') } } else if (_opentype === 'excelIn') { // 瀵煎叆瀵煎嚭 if (_intertype === 'outer') { - _options.push('innerFunc', 'sysInterface', 'interface', 'outerFunc', 'callbackFunc') + _options.push('innerFunc', 'sysInterface', 'interface', 'proInterface', 'outerFunc', 'callbackFunc') } else if (_intertype === 'inner') { _options.push('innerFunc') } @@ -203,7 +203,7 @@ if (_funcType === 'print') { _options.push('execMode', 'intertype', 'Ot', 'execSuccess', 'execError') if (_intertype === 'outer') { - _options.push('innerFunc', 'sysInterface', 'interface', 'outerFunc', 'callbackFunc') + _options.push('innerFunc', 'sysInterface', 'interface', 'proInterface', 'outerFunc', 'callbackFunc') } else if (_intertype === 'inner') { _options.push('innerFunc') } @@ -217,7 +217,7 @@ _options.push('innerFunc') } } else if (_intertype === 'outer') { - _options.push('innerFunc', 'sysInterface', 'interface', 'outerFunc', 'callbackFunc') + _options.push('innerFunc', 'sysInterface', 'interface', 'proInterface', 'outerFunc', 'callbackFunc') } else if (_intertype === 'inner') { _options.push('innerFunc') } else { @@ -641,7 +641,13 @@ <Col span={24} key={index}> <Form.Item label={item.label} className="textarea"> {getFieldDecorator(item.key, { - initialValue: item.initVal + initialValue: item.initVal, + rules: [ + { + required: !!item.required, + message: this.props.dict['form.required.input'] + item.label + '!' + } + ] })(<TextArea rows={2} />)} </Form.Item> </Col> -- Gitblit v1.8.0