From b987be8dd8b6bc1fa01810daa1e1a60e58a3c921 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 04 九月 2020 17:24:36 +0800
Subject: [PATCH] 2020-09-04

---
 src/menu/datasource/index.jsx |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/src/menu/datasourcecomponent/index.jsx b/src/menu/datasource/index.jsx
similarity index 87%
rename from src/menu/datasourcecomponent/index.jsx
rename to src/menu/datasource/index.jsx
index a5baeb0..28735f2 100644
--- a/src/menu/datasourcecomponent/index.jsx
+++ b/src/menu/datasource/index.jsx
@@ -11,9 +11,7 @@
 class DataSource extends Component {
   static propTpyes = {
     config: PropTypes.any,
-    MenuID: PropTypes.string,
-    tableFields: PropTypes.any,
-    permFuncField: PropTypes.any,
+    menu: PropTypes.object,
     updateConfig: PropTypes.func
   }
 
@@ -55,7 +53,7 @@
   }
 
   render () {
-    const { config } = this.props
+    const { config, menu } = this.props
     const { visible, dict, loading } = this.state
 
     return (
@@ -76,11 +74,8 @@
         >
           <VerifyCard
             dict={dict}
+            menu={menu}
             config={config}
-            tableFields={this.props.tableFields}
-            permFuncField={this.props.permFuncField}
-            menuId={this.props.config.uuid}
-            searches={config.search}
             wrappedComponentRef={(inst) => this.verifyRef = inst}
           />
         </Modal>

--
Gitblit v1.8.0