king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
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) {
@@ -276,6 +299,10 @@
        } else {
          MKEmitter.emit('reloadData', btn.syncComponentId)
        }
      }
      if (tabId) {
        MKEmitter.emit('reloadMenuView', tabId)
      }
    }
@@ -377,7 +404,7 @@
          if (res.status) {
            this.execSuccess(res)
          } else if (res.ErrCode === 'C') {
            const _this = this
            const that = this
            confirm({
              title: window.GLOB.dict['exec_sure'] || '请确认',
              content: res.message,
@@ -387,16 +414,16 @@
                return new Promise(resolve => {
                  Api.genericInterface(unCheckParam).then(result => {
                    if (result.status) {
                      _this.execSuccess(result)
                      that.execSuccess(result)
                    } else {
                      _this.execError(result)
                      that.execError(result)
                    }
                    resolve()
                  })
                })
              },
              onCancel() {
                _this.execError(res)
                that.execError(res)
              }
            })
          } else {