king
2024-07-01 866db6d8afa6980fd485570acda6b5fcebda4da3
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) { // 标签关闭刷新