From cf804e19634ff953bb132af1b2f46905d80c1e3a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 12 五月 2021 15:08:34 +0800
Subject: [PATCH] 2021-05-12

---
 src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx |   63 ++++++++++++++++++++++++++++---
 1 files changed, 56 insertions(+), 7 deletions(-)

diff --git a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
index dd2f8e1..3b19179 100644
--- a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
+++ b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
@@ -1,6 +1,6 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
-import { Form, Row, Col, Input, Radio, Tooltip, Icon, notification, Select } from 'antd'
+import { Form, Row, Col, Input, Radio, Tooltip, Icon, notification, Select, InputNumber } from 'antd'
 import moment from 'moment'
 
 import Api from '@/api'
@@ -216,6 +216,10 @@
                       required: true,
                       message: dict['form.required.input'] + '琛ㄥ悕!'
                     },
+                    {
+                      max: 50,
+                      message: '琛ㄥ悕鏈�闀夸负50涓瓧绗�!'
+                    }
                   ]
                 })(<Input placeholder={''} autoComplete="off" />)}
               </Form.Item>
@@ -293,8 +297,8 @@
                   鍓嶇疆鍑芥暟
                 </Tooltip>
               }>
-                {getFieldDecorator('innerFunc', {
-                  initialValue: setting.innerFunc || '',
+                {getFieldDecorator('prevFunc', {
+                  initialValue: setting.prevFunc || '',
                   rules: [
                     {
                       required: true,
@@ -310,19 +314,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" />
@@ -332,6 +336,23 @@
                 {getFieldDecorator('proInterface', {
                   initialValue: setting.proInterface || ''
                 })(<TextArea rows={2} />)}
+              </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}>
@@ -448,7 +469,7 @@
             <Col span={12}>
               <Form.Item label="榛樿鎺掑簭">
                 {getFieldDecorator('order', {
-                  initialValue: setting.order || '',
+                  initialValue: setting.order || 'ID desc',
                   rules: [
                     {
                       required: true,
@@ -503,6 +524,22 @@
                 <Radio.Group>
                   <Radio value="sync">鍚屾</Radio>
                   <Radio value="async">寮傛</Radio>
+                </Radio.Group>)}
+              </Form.Item>
+            </Col> : null}
+            {interType === 'custom' ? <Col span={12}>
+              <Form.Item label={
+                <Tooltip placement="topLeft" title={'濡傛灉鑷畾涔夋帴鍙d笉鏀寔璺ㄥ煙璇锋眰锛屼細閫氳繃褰撳墠绯荤粺杞彂銆�'}>
+                  <Icon type="question-circle" />
+                  璺ㄥ煙璇锋眰
+                </Tooltip>
+              }>
+                {getFieldDecorator('cross', {
+                  initialValue: setting.cross || 'true'
+                })(
+                <Radio.Group>
+                  <Radio value="true">鏀寔</Radio>
+                  <Radio value="false">涓嶆敮鎸�</Radio>
                 </Radio.Group>)}
               </Form.Item>
             </Col> : null}
@@ -579,6 +616,18 @@
             </Col>
             <Col span={12}>
               <Form.Item label={
+                <Tooltip placement="topLeft" title="楂樼骇鎼滅储寮圭獥鐨勫搴︼紝娉細褰撳搴﹀�煎皬浜�100鏃惰〃绀哄崰绐楀彛鐨勭櫨鍒嗘瘮锛屽ぇ浜�100鏃惰〃绀哄搴︾殑缁濆鍊笺��">
+                  <Icon type="question-circle" />
+                  楂樼骇鎼滅储
+                </Tooltip>
+              }>
+                {getFieldDecorator('advanceWidth', {
+                  initialValue: setting.advanceWidth || 1000
+                })(<InputNumber min={10} max={3000} precision={0}/>)}
+              </Form.Item>
+            </Col>
+            <Col span={12}>
+              <Form.Item label={
                 <Tooltip placement="topLeft" title="鍙屽嚮琛ㄦ牸涓锛岃Е鍙戠殑鎸夐挳銆�">
                   <Icon type="question-circle" />
                   鍙屽嚮浜嬩欢

--
Gitblit v1.8.0