From 1a11f7115e61c548f9ffc77d0a9e504307ca71b2 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 24 八月 2021 18:37:20 +0800
Subject: [PATCH] 2021-08-24

---
 src/templates/modalconfig/index.jsx |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)

diff --git a/src/templates/modalconfig/index.jsx b/src/templates/modalconfig/index.jsx
index 3ab3c92..97a26bb 100644
--- a/src/templates/modalconfig/index.jsx
+++ b/src/templates/modalconfig/index.jsx
@@ -97,22 +97,12 @@
 
     // 涓昏彍鍗曞凡鏈夐�夋嫨鐨勮〃鍚嶏紝妯℃�佹娌℃湁琛ㄥ悕鏃讹紝澶嶅埗涓昏彍鍗曡〃鍚�
     _config.tables = _config.tables.length === 0 ? _menu.tables : _config.tables
-
-    let _source = fromJS(SearchItems).toJS()
-    if (!!this.props.editTab) {
-      _source.push({
-        type: 'form',
-        label: this.state.dict['header.form.linkMain'],
-        subType: 'linkMain',
-        url: ''
-      })
-    }
+    
     _config = updateForm(_config)
 
     this.setState({
       openEdition: editAction.open_edition || '',
       menu: _menu,
-      source: _source,
       config: _config,
       originConfig: fromJS(_config).toJS(),
       modalformlist: [
@@ -611,7 +601,7 @@
   }
 
   render () {
-    const { config, source, dict } = this.state
+    const { config, dict } = this.state
 
     return (
       <div className="modal-form-board">
@@ -632,7 +622,7 @@
               </Panel>
               <Panel header={dict['header.menu.form']} key="1">
                 <div className="search-element">
-                  {source.map((item, index) => {
+                  {SearchItems.map((item, index) => {
                     return (<SourceElement key={index} content={item}/>)
                   })}
                 </div>

--
Gitblit v1.8.0