From 8f984c1eeadb0a5e263e6d5750716b0d1cff2906 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期三, 20 一月 2021 18:40:09 +0800
Subject: [PATCH] 2021-01-20

---
 src/menu/components/code/sandbox/wrapsetting/settingform/index.jsx |   55 ++++---------------------------------------------------
 1 files changed, 4 insertions(+), 51 deletions(-)

diff --git a/src/menu/components/code/sandbox/wrapsetting/settingform/index.jsx b/src/menu/components/code/sandbox/wrapsetting/settingform/index.jsx
index b93fffd..76806c6 100644
--- a/src/menu/components/code/sandbox/wrapsetting/settingform/index.jsx
+++ b/src/menu/components/code/sandbox/wrapsetting/settingform/index.jsx
@@ -14,7 +14,6 @@
 
   state = {
     roleList: [],
-    datatype: this.props.wrap.datatype || 'dynamic'
   }
 
   UNSAFE_componentWillMount () {
@@ -53,14 +52,10 @@
     }
   }
 
-  changeDataType = (e) => {
-    this.setState({datatype: e.target.value})
-  }
-
   render() {
-    const { wrap, config } = this.props
+    const { wrap } = this.props
     const { getFieldDecorator } = this.props.form
-    const { roleList, datatype } = this.state
+    const { roleList } = this.state
 
     const formItemLayout = {
       labelCol: {
@@ -77,13 +72,6 @@
       <div className="model-menu-setting-form">
         <Form {...formItemLayout}>
           <Row gutter={24}>
-            <Col span={12}>
-              <Form.Item label="鏍囬">
-                {getFieldDecorator('title', {
-                  initialValue: wrap.title || ''
-                })(<Input placeholder={''} autoComplete="off" onPressEnter={this.handleSubmit} />)}
-              </Form.Item>
-            </Col>
             <Col span={12}>
               <Form.Item label={
                 <Tooltip placement="topLeft" title="鐢ㄤ簬缁勪欢闂寸殑鍖哄垎銆�">
@@ -128,50 +116,15 @@
                 </Tooltip>
               }>
                 {getFieldDecorator('datatype', {
-                  initialValue: datatype
+                  initialValue: wrap.datatype || 'dynamic'
                 })(
-                  <Radio.Group onChange={this.changeDataType}>
+                  <Radio.Group>
                     <Radio value="dynamic">鍔ㄦ��</Radio>
                     <Radio value="static">闈欐��</Radio>
                   </Radio.Group>
                 )}
               </Form.Item>
             </Col>
-            {datatype === 'dynamic' ? <Col span={12}>
-              <Form.Item label={
-                <Tooltip placement="topLeft" title="閫夋嫨鍔ㄦ�佸�兼椂锛岄渶璁剧疆鏂囨湰瀛楁鎵嶅彲鐢熸晥銆�">
-                  <Icon type="question-circle" />
-                  鏂囨湰瀛楁
-                </Tooltip>
-              }>
-                {getFieldDecorator('field', {
-                  initialValue: wrap.field || ''
-                })(
-                  <Select>
-                    {config.columns.map(option =>
-                      <Select.Option key={option.uuid} value={option.field}>{option.label}</Select.Option>
-                    )}
-                  </Select>
-                )}
-              </Form.Item>
-            </Col> : null}
-            {datatype === 'dynamic' ? <Col span={12}>
-              <Form.Item label={
-                <Tooltip placement="topLeft" title="浠庢暟鎹簮鑾峰彇鐨勬暟鎹槸鍚﹂渶瑕佽В鐮併��">
-                  <Icon type="question-circle" />
-                  鏁版嵁瑙g爜
-                </Tooltip>
-              }>
-                {getFieldDecorator('encryption', {
-                  initialValue: wrap.encryption || 'true'
-                })(
-                  <Radio.Group>
-                    <Radio value="true">鏄�</Radio>
-                    <Radio value="false">鍚�</Radio>
-                  </Radio.Group>
-                )}
-              </Form.Item>
-            </Col> : null}
             <Col span={12}>
               <Form.Item label="榛戝悕鍗�">
                 {getFieldDecorator('blacklist', {

--
Gitblit v1.8.0