king
2024-09-11 bfbd5a28cacbde2c5d69df79c817c1218da41dde
src/tabviews/zshare/actionList/normalbutton/index.jsx
@@ -1582,6 +1582,13 @@
          _resolve()
        })
      } else if (params.length <= 20 && btn.execType !== 'single') {
        if (window.backend && params[0].$backend && (!btn.verify || (btn.verify.printEnable !== 'true' && !btn.output))) {
          params = [{
            $backend: true,
            data: params.map(item => item.data[0])
          }]
        }
        let deffers = params.map((param, i) => {
          return new Promise(resolve => {
            setTimeout(() => {
@@ -2709,6 +2716,7 @@
              _resolve()
            } else {
              if (params.length === 0) {
                this.clearBackCache()
                this.execSuccess(res)
                _resolve()
              } else {
@@ -2730,6 +2738,7 @@
              _resolve()
            } else {
              if (params.length === 0) {
                this.clearBackCache()
                this.execSuccess(res)
                _resolve()
              } else {
@@ -2746,6 +2755,7 @@
          _resolve()
        } else {
          if (params.length === 0) {
            this.clearBackCache()
            this.execSuccess(re)
            _resolve()
          } else {
@@ -2756,6 +2766,30 @@
    }
  }
  clearBackCache = () => {
    if (!window.GLOB.backend) return
    Api.cacheInterface({}).then(res => {
      if (!res.status) {
        notification.warning({
          top: 92,
          message: res.message || '缓存清空失败!',
          duration: 5
        })
      } else if (window.GLOB.localSystemApi) {
        Api.cacheInterface({rduri: window.GLOB.localSystemApi.replace('dostars', 'excache')}).then(result => {
          if (!result.status) {
            notification.warning({
              top: 92,
              message: result.message || '缓存清空失败!',
              duration: 5
            })
          }
        })
      }
    })
  }
  /**
   * @description 操作成功后处理
   * 1、excel导出,成功后取消导出按钮加载中状态