From 12add7610dc9a998b4296e3f203fa858694bdbd3 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 31 八月 2021 12:59:52 +0800
Subject: [PATCH] 2021-08-31

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

diff --git a/src/tabviews/zshare/actionList/changeuserbutton/index.jsx b/src/tabviews/zshare/actionList/changeuserbutton/index.jsx
index a22f743..91d7660 100644
--- a/src/tabviews/zshare/actionList/changeuserbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/changeuserbutton/index.jsx
@@ -15,6 +15,7 @@
   static propTpyes = {
     show: PropTypes.any,              // 鎸夐挳鏄剧ず鏍峰紡鎺у埗
     position: PropTypes.any,          // 鎸夐挳浣嶇疆锛屽伐鍏锋爮涓簍oolbar
+    MenuID: PropTypes.any,            // 鑿滃崟ID
     BID: PropTypes.string,            // 涓昏〃ID
     btn: PropTypes.object,            // 鎸夐挳
     selectedData: PropTypes.any,      // 瀛愯〃涓�夋嫨鏁版嵁
@@ -83,10 +84,19 @@
    * @description 瑙﹀彂鎸夐挳鎿嶄綔
    */
   actionTrigger = (triggerId, record) => {
-    const { setting, selectedData, btn } = this.props
+    const { setting, selectedData, btn, MenuID } = this.props
     const { loading } = this.state
     
     if ((triggerId && btn.uuid !== triggerId) || loading) return
+
+    if (btn.funcType === 'closetab') {
+      MKEmitter.emit('closeTabView', MenuID || btn.$menuId)
+
+      if (btn.refreshTab && btn.refreshTab.length > 0) {
+        MKEmitter.emit('reloadMenuView', btn.refreshTab[btn.refreshTab.length - 1], 'table')
+      }
+      return
+    }
     
     let data = record || selectedData || []
 

--
Gitblit v1.8.0