From 31871ca836e6fcbea9b1c54e2ec15f49667bf093 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 23 十二月 2022 14:14:04 +0800
Subject: [PATCH] 2022-12-23

---
 src/tabviews/custom/components/share/normalheader/index.jsx |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/tabviews/custom/components/share/normalheader/index.jsx b/src/tabviews/custom/components/share/normalheader/index.jsx
index 570a190..0b19275 100644
--- a/src/tabviews/custom/components/share/normalheader/index.jsx
+++ b/src/tabviews/custom/components/share/normalheader/index.jsx
@@ -9,7 +9,6 @@
 class NormalHeader extends Component {
   static propTpyes = {
     BID: PropTypes.any,        // 涓婄骇涓婚敭鍊�
-    menuType: PropTypes.any,   // 鑿滃崟绫诲瀷
     config: PropTypes.object,  // 閰嶇疆淇℃伅
     refresh: PropTypes.func    // 鏉′欢鍒锋柊
   }
@@ -24,7 +23,7 @@
 
     this.setState({
       title: config.plot ? config.plot.title : config.wrap.title,
-      show: !['normaltable', 'propcard'].includes(config.subtype) && config.search && config.search.length > 0
+      show: !['normaltable', 'propcard', 'editable'].includes(config.subtype) && config.search && config.search.length > 0
     })
   }
 
@@ -40,7 +39,7 @@
   }
 
   render() {
-    const { config, menuType, BID } = this.props
+    const { config, BID } = this.props
     const { title, show } = this.state
 
     if (!title && !show) return null
@@ -48,7 +47,7 @@
     return (
       <div className={'normal-header' + (show ? ' header-search' : '')} style={config.headerStyle}>
         <span className="title">{title}</span>
-        {show ? <SearchComponent config={config} BID={BID} menuType={menuType} refreshdata={this.props.refresh}/> : null}
+        {show ? <SearchComponent config={config} BID={BID} refreshdata={this.props.refresh}/> : null}
       </div>
     )
   }

--
Gitblit v1.8.0