From a8ec1d4136507d54580c2599fbfbc70a9a38ee62 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 05 二月 2021 00:35:17 +0800 Subject: [PATCH] 2021-02-05 --- src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx | 27 ++++++++++++++++++++++----- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx index dd2f8e1..e303c63 100644 --- a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx +++ b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx @@ -293,8 +293,8 @@ 鍓嶇疆鍑芥暟 </Tooltip> }> - {getFieldDecorator('innerFunc', { - initialValue: setting.innerFunc || '', + {getFieldDecorator('prevFunc', { + initialValue: setting.prevFunc || '', rules: [ { required: true, @@ -310,19 +310,19 @@ </Form.Item> </Col> : null} {interType === 'outer' || interType === 'custom' ? <Col className="data-source" span={24}> - <Form.Item label="鎺ュ彛鍦板潃"> + <Form.Item label="娴嬭瘯鍦板潃"> {getFieldDecorator('interface', { initialValue: setting.interface || '', rules: [ { required: true, - message: dict['form.required.input'] + '鎺ュ彛鍦板潃!' + message: dict['form.required.input'] + '娴嬭瘯鍦板潃!' }, ] })(<TextArea rows={2} />)} </Form.Item> </Col> : null} - {interType === 'custom' ? <Col className="data-source" span={24}> + {interType === 'outer' || interType === 'custom' ? <Col className="data-source" span={24}> <Form.Item label={ <Tooltip placement="topLeft" title="姝e紡绯荤粺鎵�浣跨敤鐨勭殑鎺ュ彛鍦板潃銆�"> <Icon type="question-circle" /> @@ -335,6 +335,23 @@ </Form.Item> </Col> : null} {interType === 'custom' ? <Col span={12}> + <Form.Item label="璇锋眰鏂瑰紡"> + {getFieldDecorator('method', { + initialValue: setting.method || 'post', + rules: [ + { + required: true, + message: dict['form.required.select'] + '璇锋眰鏂瑰紡!' + }, + ] + })( + <Radio.Group> + <Radio value="get">GET</Radio> + <Radio value="post">POST</Radio> + </Radio.Group>)} + </Form.Item> + </Col> : null} + {interType === 'custom' ? <Col span={12}> <Form.Item label="鏁版嵁璇锋眰"> {getFieldDecorator('requestMode', { initialValue: requestMode, -- Gitblit v1.8.0