From d17368d4a5bdec6db2d8a85c7901cdb25cc59cd4 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 11 十月 2021 15:16:25 +0800
Subject: [PATCH] 2021-10-11

---
 src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 53 insertions(+), 2 deletions(-)

diff --git a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
index 1d1e1d5..67b0e77 100644
--- a/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
+++ b/src/templates/sharecomponent/settingcomponent/settingform/datasource/index.jsx
@@ -28,6 +28,7 @@
     interType: 'system',
     procMode: 'script',
     requestMode: 'system',
+    tableType: '',
     funcTooltip: '',
     funcRules: []
   }
@@ -64,6 +65,7 @@
       interType: setting.interType || 'system',
       procMode: setting.procMode || 'script',
       requestMode: setting.requestMode || 'system',
+      tableType: setting.tableType,
       funcTooltip: tooltip,
       funcRules: rules
     })
@@ -192,7 +194,7 @@
   render() {
     const { setting, dict, menu, config, columns } = this.props
     const { getFieldDecorator } = this.props.form
-    const { interType, funcRules, funcTooltip, procMode, requestMode } = this.state
+    const { interType, funcRules, funcTooltip, procMode, requestMode, tableType } = this.state
 
     const formItemLayout = {
       labelCol: {
@@ -231,7 +233,7 @@
                 {getFieldDecorator('tableType', {
                   initialValue: setting.tableType
                 })(
-                  <Radio.Group>
+                  <Radio.Group onChange={(e) => this.setState({tableType: e.target.value})}>
                     <Radio value="">涓嶅彲閫�</Radio>
                     <Radio value="radio">鍗曢��</Radio>
                     <Radio value="checkbox">澶氶��</Radio>
@@ -663,6 +665,55 @@
             </Col>
             <Col span={12}>
               <Form.Item label={
+                <Tooltip placement="topLeft" title="鏁版嵁鍔犺浇鏃讹紝鏄惁鏄剧ず鍔犺浇涓殑閬僵銆�">
+                  <Icon type="question-circle" />
+                  閬僵
+                </Tooltip>
+              }>
+                {getFieldDecorator('mask', {
+                  initialValue: setting.mask || 'show'
+                })(
+                <Radio.Group>
+                  <Radio value="show">鏄剧ず</Radio>
+                  <Radio value="hidden">闅愯棌</Radio>
+                </Radio.Group>)}
+              </Form.Item>
+            </Col>
+            <Col span={12}>
+              <Form.Item label={
+                <Tooltip placement="topLeft" title="鍦ㄦ悳绱㈡潯浠跺瓨鍦ㄦ椂锛屾槸鍚︽樉绀烘悳绱㈠拰閲嶇疆鎸夐挳銆�">
+                  <Icon type="question-circle" />
+                  鎼滅储鎸夐挳
+                </Tooltip>
+              }>
+                {getFieldDecorator('show', {
+                  initialValue: setting.show || 'true'
+                })(
+                <Radio.Group>
+                  <Radio value="true">鏄剧ず</Radio>
+                  <Radio value="false">闅愯棌</Radio>
+                </Radio.Group>)}
+              </Form.Item>
+            </Col>
+            {tableType !== '' ? <Col span={12}>
+              <Form.Item label={
+                <Tooltip placement="topLeft" title="鍦ㄥ惎鐢ㄦ棤浜哄�煎畧鍔熻兘鏃舵棤鏁堛��">
+                  <Icon type="question-circle" />
+                  棣栬閫変腑
+                </Tooltip>
+              }>
+                {getFieldDecorator('selected', {
+                  initialValue: setting.selected || 'false'
+                })(
+                <Radio.Group>
+                  <Radio value="false">鏃�</Radio>
+                  <Radio value="init">鍒濆鍖�</Radio>
+                  <Radio value="always">鏁版嵁鍔犺浇</Radio>
+                </Radio.Group>)}
+              </Form.Item>
+            </Col> : null}
+            <Col span={12}>
+              <Form.Item label={
                 <Tooltip placement="topLeft" title="楂樼骇鎼滅储寮圭獥鐨勫搴︼紝娉細褰撳搴﹀�煎皬浜�100鏃惰〃绀哄崰绐楀彛鐨勭櫨鍒嗘瘮锛屽ぇ浜�100鏃惰〃绀哄搴︾殑缁濆鍊笺��">
                   <Icon type="question-circle" />
                   楂樼骇鎼滅储

--
Gitblit v1.8.0