From a6cfaea4cfac187f24cbd56ec07a7cc766a6c9a7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期六, 29 六月 2024 15:31:17 +0800
Subject: [PATCH] 2024-06-29

---
 src/tabviews/zshare/actionList/excelInbutton/index.jsx |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/src/tabviews/zshare/actionList/excelInbutton/index.jsx b/src/tabviews/zshare/actionList/excelInbutton/index.jsx
index 1be21b1..9310404 100644
--- a/src/tabviews/zshare/actionList/excelInbutton/index.jsx
+++ b/src/tabviews/zshare/actionList/excelInbutton/index.jsx
@@ -180,6 +180,16 @@
       loading: false
     })
 
+    let tabId = ''
+    if (btn.refreshTab && btn.refreshTab.length > 0) {
+      tabId = btn.refreshTab[btn.refreshTab.length - 1]
+    }
+
+    if (tabId && btn.$MenuID === tabId) { // 鍒锋柊褰撳墠鑿滃崟鏃讹紝鍋滄鍏朵粬鎿嶄綔
+      MKEmitter.emit('reloadMenuView', tabId)
+      return
+    }
+
     if (btn.execSuccess === 'closepoptab') {
       MKEmitter.emit('popclose')
     } else if (btn.execSuccess !== 'never') {
@@ -202,6 +212,10 @@
       } else {
         MKEmitter.emit('reloadData', btn.syncComponentId)
       }
+    }
+
+    if (tabId) {
+      MKEmitter.emit('reloadMenuView', tabId)
     }
 
     if (btn.switchTab && btn.switchTab.length > 0) {
@@ -258,6 +272,15 @@
     if (btn.execError === 'closepoptab') {
       MKEmitter.emit('popclose')
     } else if (btn.execError !== 'never') {
+      let tabId = ''
+      if (btn.refreshTab && btn.refreshTab.length > 0) {
+        tabId = btn.refreshTab[btn.refreshTab.length - 1]
+      }
+      if (tabId && btn.$MenuID === tabId) { // 鍒锋柊褰撳墠鑿滃崟鏃讹紝鍋滄鍏朵粬鎿嶄綔
+        MKEmitter.emit('reloadMenuView', tabId, 'table')
+        return
+      }
+
       MKEmitter.emit('refreshByButtonResult', btn.$menuId, btn.execError, btn, '', this.state.selines)
 
       if (btn.syncComponentId) {
@@ -277,6 +300,10 @@
           MKEmitter.emit('reloadData', btn.syncComponentId)
         }
       }
+
+      if (tabId) {
+        MKEmitter.emit('reloadMenuView', tabId)
+      }
     }
 
     if (btn.execError === 'popclose' && btn.$tabId) { // 鏍囩鍏抽棴鍒锋柊

--
Gitblit v1.8.0