From b35e3f0bacdbadf5823e06fe8dc6e047089aae38 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期日, 19 一月 2020 00:25:45 +0800
Subject: [PATCH] 2020-01-19

---
 src/tabviews/tableshare/actionList/index.jsx |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/tableshare/actionList/index.jsx b/src/tabviews/tableshare/actionList/index.jsx
index 5fb6b00..a688782 100644
--- a/src/tabviews/tableshare/actionList/index.jsx
+++ b/src/tabviews/tableshare/actionList/index.jsx
@@ -12,6 +12,7 @@
 class MainAction extends Component {
   static propTpyes = {
     BID: PropTypes.string,
+    Tab: PropTypes.any,
     type: PropTypes.string,
     MenuID: PropTypes.string,
     actions: PropTypes.array, // 鎼滅储鏉′欢鍒楄〃
@@ -39,7 +40,16 @@
    * @description 瑙﹀彂鎸夐挳鎿嶄綔
    */
   actionTrigger = (item, record) => {
-    const { setting } = this.props
+    const { setting, type, Tab, BID } = this.props
+
+    if (type === 'sub' && Tab && Tab.supMenu && !BID) {
+      notification.warning({
+        top: 92,
+        message: '闇�瑕佷笂绾т富閿�硷紒',
+        duration: 10
+      })
+      return
+    }
 
     let _this = this
     let data = this.props.gettableselected() || []

--
Gitblit v1.8.0