From 29c5821ce140e89a8b35e53f41672dd86da56982 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 18 二月 2020 18:43:38 +0800
Subject: [PATCH] 2020-02-18

---
 src/templates/formtabconfig/settingform/index.jsx |   46 +---------------------------------------------
 1 files changed, 1 insertions(+), 45 deletions(-)

diff --git a/src/templates/formtabconfig/settingform/index.jsx b/src/templates/formtabconfig/settingform/index.jsx
index 15b044f..f3eba02 100644
--- a/src/templates/formtabconfig/settingform/index.jsx
+++ b/src/templates/formtabconfig/settingform/index.jsx
@@ -17,8 +17,6 @@
   state = {
     interType: (this.props.config.setting && this.props.config.setting.interType) || 'inner',
     columns: null,
-    currentTabs: null,
-    selectTabs: [],
     interReadonly: false,
     primaryKey: ''
   }
@@ -26,9 +24,6 @@
   UNSAFE_componentWillMount() {
     const { config } = this.props
 
-    let _tabs = []
-    let _select = []
-    let _tabMap = new Map()
     let _columns = []
     let _setting = config.setting
     
@@ -55,21 +50,6 @@
       })
     }
 
-    config.tabgroups.forEach(groupname => {
-      config[groupname].forEach(tab => {
-        if (tab.origin) return
-
-        _tabs.push(tab)
-        _tabMap.set(tab.uuid, true)
-      })
-    })
-
-    _setting.subtabs && _setting.subtabs.forEach(tabId => {
-      if (_tabMap.has(tabId)) {
-        _select.push(tabId)
-      }
-    })
-
     let primaryKey = _setting.primaryKey
     if (primaryKey) {
       let field = _columns.filter(column => column.field === primaryKey)
@@ -86,8 +66,6 @@
     }
 
     this.setState({
-      currentTabs: _tabs,
-      selectTabs: _select,
       columns: _columns,
       setting: _setting,
       interType: _setting.interType || 'inner',
@@ -174,7 +152,7 @@
   render() {
     const { dict, usefulFields, menu } = this.props
     const { getFieldDecorator } = this.props.form
-    const { interType, columns, selectTabs, setting, datatype, primaryKey } = this.state
+    const { interType, columns, setting, datatype, primaryKey } = this.state
 
     const formItemLayout = {
       labelCol: {
@@ -341,28 +319,6 @@
               })(<Input placeholder="" autoComplete="off" />)}
             </Form.Item>
           </Col> : null}
-          <Col span={12}>
-            <Form.Item label={
-              <Tooltip placement="topLeft" title="涓昏〃鍙�夊彇鍏宠仈鏍囩锛屾爣绛惧叧鑱斿悗锛屼富琛ㄦ暟鎹垏鎹㈡椂锛屼笅绾ф爣绛句細璺熼殢涓昏〃涓婚敭鍊煎彉鍖栥��">
-                <Icon type="question-circle" />
-                {'涓嬬骇鏍囩'}
-              </Tooltip>
-            }>
-              {getFieldDecorator('subtabs', {
-                initialValue: selectTabs
-              })(
-                <Select
-                  mode="multiple"
-                  style={{ width: '100%' }}
-                  placeholder="Please select"
-                >
-                  {this.state.currentTabs.map((option, index) =>
-                    <Select.Option id={option.uuid} title={option.label} key={index} value={option.uuid}>{option.label}</Select.Option>
-                  )}
-                </Select>
-              )}
-            </Form.Item>
-          </Col>
         </Row>
       </Form>
     )

--
Gitblit v1.8.0