From 866db6d8afa6980fd485570acda6b5fcebda4da3 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 01 七月 2024 16:08:27 +0800 Subject: [PATCH] 2024-07-01 --- src/tabviews/zshare/actionList/exceloutbutton/index.jsx | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx index cd40165..2a87051 100644 --- a/src/tabviews/zshare/actionList/exceloutbutton/index.jsx +++ b/src/tabviews/zshare/actionList/exceloutbutton/index.jsx @@ -986,6 +986,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') { @@ -1008,6 +1018,10 @@ } else { MKEmitter.emit('reloadData', btn.syncComponentId) } + } + + if (tabId) { + MKEmitter.emit('reloadMenuView', tabId) } if (btn.switchTab && btn.switchTab.length > 0) { @@ -1064,6 +1078,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) + return + } + MKEmitter.emit('refreshByButtonResult', btn.$menuId, btn.execError, btn, '', []) if (btn.syncComponentId) { @@ -1083,6 +1106,10 @@ MKEmitter.emit('reloadData', btn.syncComponentId) } } + + if (tabId) { + MKEmitter.emit('reloadMenuView', tabId) + } } if (btn.execError === 'popclose' && btn.$tabId) { // 鏍囩鍏抽棴鍒锋柊 -- Gitblit v1.8.0