From a3ac1b4636cf446804bb1947d6a5d2dd6c3bc030 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 13 十二月 2020 17:16:54 +0800
Subject: [PATCH] 2020-12-13

---
 src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx |   26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
index 7521f34..c1c0e77 100644
--- a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
+++ b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
@@ -11,7 +11,7 @@
 
 class SettingForm extends Component {
   static propTpyes = {
-    type: PropTypes.string,       // 鑿滃崟绫诲瀷锛宮ain鎴杝ubtable
+    config: PropTypes.object,     // 椤甸潰閰嶇疆
     dict: PropTypes.object,       // 瀛楀吀椤�
     menu: PropTypes.object,       // 鑿滃崟淇℃伅
     setting: PropTypes.object,    // 鏁版嵁婧愰厤缃�
@@ -174,7 +174,7 @@
   }
 
   render() {
-    const { setting, dict, menu, type, columns } = this.props
+    const { setting, dict, menu, config, columns } = this.props
     const { getFieldDecorator } = this.props.form
     const { interType, funcRules, funcTooltip } = this.state
 
@@ -400,7 +400,7 @@
                 </Radio.Group>)}
               </Form.Item>
             </Col>
-            {type === 'main' ? <Col span={12}>
+            {config.Template === 'CommonTable' ? <Col span={12}>
               <Form.Item label="鎸夐挳鍥哄畾">
                 {getFieldDecorator('actionfixed', {
                   initialValue: setting.actionfixed === 'true' || setting.actionfixed === true ? 'true' : 'false'
@@ -411,7 +411,7 @@
                 </Radio.Group>)}
               </Form.Item>
             </Col> : null}
-            {type === 'main' ? <Col span={12}>
+            {config.Template === 'CommonTable' ? <Col span={12}>
               <Form.Item label={
                 <Tooltip placement="topLeft" title={'鍚湁鍚堝苟鍒楁垨琛ㄦ牸鍑虹幇妯悜婊氬姩鏃朵細鏄剧ず寮傚父锛岃鎱庣敤锛�'}>
                   <Icon type="question-circle" />
@@ -438,6 +438,24 @@
                 </Radio.Group>)}
               </Form.Item>
             </Col>
+            <Col span={12}>
+              <Form.Item label={
+                <Tooltip placement="topLeft" title="鍙屽嚮琛ㄦ牸涓锛岃Е鍙戠殑鎸夐挳銆�">
+                  <Icon type="question-circle" />
+                  鍙屽嚮浜嬩欢
+                </Tooltip>
+              }>
+                {getFieldDecorator('doubleClick', {
+                  initialValue: setting.doubleClick || ''
+                })(
+                  <Select allowClear>
+                    {config.action.map(option =>
+                      <Select.Option key={option.uuid} value={option.uuid}>{option.label}</Select.Option>
+                    )}
+                  </Select>
+                )}
+              </Form.Item>
+            </Col>
           </Row>
         </Form>
       </div>

--
Gitblit v1.8.0