From b8cde0c39d7b6d58ceff3adf6dea3cb3118ea602 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 13 九月 2022 14:46:15 +0800
Subject: [PATCH] 2022-09-13

---
 src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx |  294 ++++++++++++++++++++++++++++------------------------------
 1 files changed, 140 insertions(+), 154 deletions(-)

diff --git a/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx b/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx
index f047810..aa58249 100644
--- a/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx
+++ b/src/templates/sharecomponent/settingcalcomponent/verifycard/settingform/index.jsx
@@ -8,7 +8,7 @@
 import { formRule } from '@/utils/option.js'
 import Utils from '@/utils/utils.js'
 import CodeMirror from '@/templates/zshare/codemirror'
-import './index.scss'
+// import './index.scss'
 
 const { TextArea } = Input
 
@@ -176,160 +176,146 @@
     }
 
     return (
-      <div className="model-datasource-setting-form-box">
-        <Form {...formItemLayout} className="model-setting-form">
-          <Row gutter={24}>
-            <Col span={8}>
-              <Form.Item label="琛ㄥ悕">
-                {getFieldDecorator('tableName', {
-                  initialValue: setting.tableName,
-                  rules: [
-                    {
-                      required: true,
-                      message: this.props.dict['form.required.input'] + '琛ㄥ悕!'
-                    },
-                    {
-                      max: 50,
-                      message: '琛ㄥ悕鏈�闀夸负50涓瓧绗�!'
-                    }
-                  ]
-                })(<Input placeholder={''} autoComplete="off" />)}
-              </Form.Item>
-            </Col>
-            <Col span={8}>
-              <Form.Item label="鎺ュ彛绫诲瀷">
-                {getFieldDecorator('interType', {
-                  initialValue: interType,
-                  rules: [
-                    {
-                      required: true,
-                      message: this.props.dict['form.required.select'] + '鎺ュ彛绫诲瀷!'
-                    },
-                  ]
-                })(
-                <Radio.Group onChange={(e) => {this.onRadioChange(e, 'interType')}}>
-                  <Radio value="system">绯荤粺</Radio>
-                  <Radio value="inner">鍐呴儴</Radio>
-                  <Radio value="outer">澶栭儴</Radio>
-                </Radio.Group>)}
-              </Form.Item>
-            </Col>
-            {interType === 'inner' ? <Col span={8}>
-              <Form.Item label={tooltip ?
-                <Tooltip placement="topLeft" title={tooltip}>
-                  <QuestionCircleOutlined className="mk-form-tip" />
-                  鍐呴儴鍑芥暟
-                </Tooltip> : '鍐呴儴鍑芥暟'
-              }>
-                {getFieldDecorator('innerFunc', {
-                  initialValue: setting.innerFunc || '',
-                  rules: rules
-                })(<Input placeholder={''} autoComplete="off" />)}
-              </Form.Item>
-            </Col> : null}
-            {interType === 'outer' ? <Col span={8}>
-              <Form.Item label="澶栭儴鍑芥暟">
-                {getFieldDecorator('outerFunc', {
-                  initialValue: setting.outerFunc || '',
-                  rules: [
+      <Form {...formItemLayout}>
+        <Row gutter={24}>
+          <Col span={8}>
+            <Form.Item label="琛ㄥ悕">
+              {getFieldDecorator('tableName', {
+                initialValue: setting.tableName,
+                rules: [
+                  {
+                    required: true,
+                    message: this.props.dict['form.required.input'] + '琛ㄥ悕!'
+                  },
+                  {
+                    max: 50,
+                    message: '琛ㄥ悕鏈�闀夸负50涓瓧绗�!'
+                  }
+                ]
+              })(<Input placeholder={''} autoComplete="off" />)}
+            </Form.Item>
+          </Col>
+          <Col span={8}>
+            <Form.Item label="鎺ュ彛绫诲瀷">
+              {getFieldDecorator('interType', {
+                initialValue: interType,
+                rules: [
+                  {
+                    required: true,
+                    message: this.props.dict['form.required.select'] + '鎺ュ彛绫诲瀷!'
+                  },
+                ]
+              })(
+              <Radio.Group onChange={(e) => {this.onRadioChange(e, 'interType')}}>
+                <Radio value="system">绯荤粺</Radio>
+                <Radio value="inner">鍐呴儴</Radio>
+                <Radio value="outer">澶栭儴</Radio>
+              </Radio.Group>)}
+            </Form.Item>
+          </Col>
+          {interType === 'inner' ? <Col span={8}>
+            <Form.Item label={tooltip ?
+              <Tooltip placement="topLeft" title={tooltip}>
+                <QuestionCircleOutlined className="mk-form-tip" />
+                鍐呴儴鍑芥暟
+              </Tooltip> : '鍐呴儴鍑芥暟'
+            }>
+              {getFieldDecorator('innerFunc', {
+                initialValue: setting.innerFunc || '',
+                rules: rules
+              })(<Input placeholder={''} autoComplete="off" />)}
+            </Form.Item>
+          </Col> : null}
+          {interType === 'outer' ? <Col span={8}>
+            <Form.Item label="澶栭儴鍑芥暟">
+              {getFieldDecorator('outerFunc', {
+                initialValue: setting.outerFunc || '',
+                rules: [
 
-                  ]
-                })(<Input placeholder={''} autoComplete="off" />)}
-              </Form.Item>
-            </Col> : null}
-            {interType === 'outer' ? <Col span={24} className="data-source">
-              <Form.Item label="鎺ュ彛鍦板潃">
-                {getFieldDecorator('interface', {
-                  initialValue: setting.interface || '',
-                  rules: [
-                    {
-                      required: true,
-                      message: this.props.dict['form.required.input'] + '鎺ュ彛鍦板潃!'
-                    },
-                  ]
-                })(<TextArea rows={2}/>)}
-              </Form.Item>
-            </Col> : null}
-            {interType === 'system' ? <Col span={24} className="data-source" style={{paddingLeft: '7px'}}>
-              <Form.Item labelCol={{xs: { span: 24 }, sm: { span: 2 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 22 }} } label={
-                <Tooltip placement="topLeft" title={'浣跨敤绯荤粺鍑芥暟鏃讹紝闇�濉啓鏁版嵁婧愩�傛敞锛氭暟鎹潈闄愭浛鎹㈢ $@ -> /* 鎴� \'\'銆� @$ -> */ 鎴� \'\''}>
-                  <QuestionCircleOutlined className="mk-form-tip" />
-                  鏁版嵁婧�
-                </Tooltip>
-              }>
-                {getFieldDecorator('dataresource', {
-                  initialValue: setting.dataresource || ''
-                })(<CodeMirror />)}
-              </Form.Item>
-            </Col> : null}
-            {interType === 'system' ? <Col span={8}>
-              <Form.Item label={
-                <Tooltip placement="topLeft" title={'鏌ヨ鏃讹紝鎼滅储鏉′欢浠here鏉′欢鎷兼帴杩涘叆sql锛岀粺璁℃椂锛屽皢鏁版嵁婧愪腑浠モ�淍+鎼滅储瀛楁+@鈥濈殑鍐呭锛屼互鎼滅储鏉′欢涓殑鍊艰繘琛屾浛鎹㈠悗锛屾彁浜ゆ煡璇紝娉細鏌ヨ绫诲瀷浠呭湪浣跨敤绯荤粺鍑芥暟鏃舵湁鏁堛��'}>
-                  <QuestionCircleOutlined className="mk-form-tip" />
-                  鏌ヨ绫诲瀷
-                </Tooltip>
-              }>
-                {getFieldDecorator('queryType', {
-                  initialValue: setting.queryType || 'query'
-                })(
-                <Radio.Group>
-                  <Radio value="query">鏌ヨ</Radio>
-                  <Radio value="statistics">缁熻</Radio>
-                </Radio.Group>)}
-              </Form.Item>
-            </Col> : null}
-            {/* <Col span={8}>
-              <Form.Item label="涓婚敭">
-                {getFieldDecorator('primaryKey', {
-                  initialValue: setting.primaryKey || ''
-                })(
-                  <Select>
-                    {columns.map((option, i) =>
-                      <Select.Option key={i} value={option.field}>
-                        {option.label}
-                      </Select.Option>
-                    )}
-                  </Select>
-                )}
-              </Form.Item>
-            </Col> */}
-            {interType === 'system' ? <Col span={8}>
-              <Form.Item label="榛樿sql">
-                {getFieldDecorator('execute', {
-                  initialValue: setting.execute || 'true'
-                })(
-                <Radio.Group>
-                  <Radio value="true">鎵ц</Radio>
-                  <Radio value="false">涓嶆墽琛�</Radio>
-                </Radio.Group>)}
-              </Form.Item>
-            </Col> : null}
-            <Col span={8}>
-              <Form.Item label="鍒濆鍖�">
-                {getFieldDecorator('onload', {
-                  initialValue: setting.onload || 'true'
-                })(
-                <Radio.Group>
-                  <Radio value="true">鍔犺浇鏁版嵁</Radio>
-                  <Radio value="false">涓嶅姞杞芥暟鎹�</Radio>
-                </Radio.Group>)}
-              </Form.Item>
-            </Col>
-            {/* <Col span={8}>
-              <Form.Item label={
-                <Tooltip placement="topLeft" title="楂樼骇鎼滅储寮圭獥鐨勫搴︼紝娉細褰撳搴﹀�煎皬浜�100鏃惰〃绀哄崰绐楀彛鐨勭櫨鍒嗘瘮锛屽ぇ浜�100鏃惰〃绀哄搴︾殑缁濆鍊笺��">
-                  <QuestionCircleOutlined className="mk-form-tip" />
-                  楂樼骇鎼滅储
-                </Tooltip>
-              }>
-                {getFieldDecorator('advanceWidth', {
-                  initialValue: setting.advanceWidth || 1000
-                })(<InputNumber min={10} max={3000} precision={0}/>)}
-              </Form.Item>
-            </Col> */}
-          </Row>
-        </Form>
-      </div>
+                ]
+              })(<Input placeholder={''} autoComplete="off" />)}
+            </Form.Item>
+          </Col> : null}
+          {interType === 'outer' ? <Col span={24} className="mk-through-line3">
+            <Form.Item label="鎺ュ彛鍦板潃">
+              {getFieldDecorator('interface', {
+                initialValue: setting.interface || '',
+                rules: [
+                  {
+                    required: true,
+                    message: this.props.dict['form.required.input'] + '鎺ュ彛鍦板潃!'
+                  },
+                ]
+              })(<TextArea rows={2}/>)}
+            </Form.Item>
+          </Col> : null}
+          {interType === 'system' ? <Col span={24} className="mk-through-line3">
+            <Form.Item labelCol={{xs: { span: 24 }, sm: { span: 2 }}} wrapperCol={ {xs: { span: 24 }, sm: { span: 22 }} } label={
+              <Tooltip placement="topLeft" title={'浣跨敤绯荤粺鍑芥暟鏃讹紝闇�濉啓鏁版嵁婧愩�傛敞锛氭暟鎹潈闄愭浛鎹㈢ $@ -> /* 鎴� \'\'銆� @$ -> */ 鎴� \'\''}>
+                <QuestionCircleOutlined className="mk-form-tip" />
+                鏁版嵁婧�
+              </Tooltip>
+            }>
+              {getFieldDecorator('dataresource', {
+                initialValue: setting.dataresource || ''
+              })(<CodeMirror />)}
+            </Form.Item>
+          </Col> : null}
+          {interType === 'system' ? <Col span={8}>
+            <Form.Item label={
+              <Tooltip placement="topLeft" title={'鏌ヨ鏃讹紝鎼滅储鏉′欢浠here鏉′欢鎷兼帴杩涘叆sql锛岀粺璁℃椂锛屽皢鏁版嵁婧愪腑浠モ�淍+鎼滅储瀛楁+@鈥濈殑鍐呭锛屼互鎼滅储鏉′欢涓殑鍊艰繘琛屾浛鎹㈠悗锛屾彁浜ゆ煡璇紝娉細鏌ヨ绫诲瀷浠呭湪浣跨敤绯荤粺鍑芥暟鏃舵湁鏁堛��'}>
+                <QuestionCircleOutlined className="mk-form-tip" />
+                鏌ヨ绫诲瀷
+              </Tooltip>
+            }>
+              {getFieldDecorator('queryType', {
+                initialValue: setting.queryType || 'query'
+              })(
+              <Radio.Group>
+                <Radio value="query">鏌ヨ</Radio>
+                <Radio value="statistics">缁熻</Radio>
+              </Radio.Group>)}
+            </Form.Item>
+          </Col> : null}
+          {/* <Col span={8}>
+            <Form.Item label="涓婚敭">
+              {getFieldDecorator('primaryKey', {
+                initialValue: setting.primaryKey || ''
+              })(
+                <Select>
+                  {columns.map((option, i) =>
+                    <Select.Option key={i} value={option.field}>
+                      {option.label}
+                    </Select.Option>
+                  )}
+                </Select>
+              )}
+            </Form.Item>
+          </Col> */}
+          {interType === 'system' ? <Col span={8}>
+            <Form.Item label="榛樿sql">
+              {getFieldDecorator('execute', {
+                initialValue: setting.execute || 'true'
+              })(
+              <Radio.Group>
+                <Radio value="true">鎵ц</Radio>
+                <Radio value="false">涓嶆墽琛�</Radio>
+              </Radio.Group>)}
+            </Form.Item>
+          </Col> : null}
+          <Col span={8}>
+            <Form.Item label="鍒濆鍖�">
+              {getFieldDecorator('onload', {
+                initialValue: setting.onload || 'true'
+              })(
+              <Radio.Group>
+                <Radio value="true">鍔犺浇鏁版嵁</Radio>
+                <Radio value="false">涓嶅姞杞芥暟鎹�</Radio>
+              </Radio.Group>)}
+            </Form.Item>
+          </Col>
+        </Row>
+      </Form>
     )
   }
 }

--
Gitblit v1.8.0