From 1637a24e160f87e171fc4978a8c9cb8875cdcabb Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 20 五月 2022 01:12:51 +0800
Subject: [PATCH] 2022-05-20

---
 src/tabviews/zshare/actionList/exceloutbutton/index.jsx |   13 +++++--------
 1 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx
index 3648ac6..8864983 100644
--- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -25,7 +25,7 @@
     setting: PropTypes.any,           // 椤甸潰閫氱敤璁剧疆
     updateStatus: PropTypes.func,     // 鎸夐挳鐘舵�佹洿鏂�
     disabled: PropTypes.any,          // 琛屾寜閽鐢�
-    lineId: PropTypes.any,            // 琛岀储寮�+涓婚敭鍊硷紝鐢ㄤ簬琛屾寜閽弻鍑�
+    lineBtn: PropTypes.any,           // 鏄惁涓鸿绾ф寜閽�
   }
 
   state = {
@@ -117,17 +117,12 @@
   /**
    * @description 瑙﹀彂鎸夐挳鎿嶄綔
    */
-  actionTrigger = (triggerId, record) => {
+  actionTrigger = (triggerId, record, type) => {
     const { setting, Tab, BID, btn } = this.props
     const { loading, disabled } = this.state
 
     if (loading || disabled) return
-    if (triggerId) {
-      if (btn.uuid !== triggerId) return
-      if (this.props.lineId && record && record[0] && this.props.lineId !== record[0].$$key) {
-        return
-      }
-    }
+    if (triggerId && btn.uuid !== triggerId) return
 
     if (((Tab && Tab.supMenu) || setting.supModule) && !BID) {
       notification.warning({
@@ -136,6 +131,8 @@
         duration: 5
       })
       return
+    } else if (type === 'linkbtn' && this.props.lineBtn && !is(fromJS(this.props.selectedData || []), fromJS(record))) {
+      return
     }
 
     if (!btn.verify || !btn.verify.columns || btn.verify.columns.length === 0) {

--
Gitblit v1.8.0