king
2023-12-24 3e13e3e61854671fce6aac45679e1b7252126105
src/tabviews/custom/components/table/normal-table/index.jsx
@@ -199,6 +199,8 @@
    }
    this.initExec()
    this.autoExec()
  }
  /**
@@ -301,6 +303,25 @@
    }
  }
  autoExec = (times) => {
    const { config } = this.state
    if (!config.wrap.autoExec) return
    let btn = document.getElementById('button' + config.wrap.autoExec)
    this.autoTimer && clearTimeout(this.autoTimer)
    if (btn) {
      MKEmitter.emit('triggerBtnId', config.wrap.autoExec, [])
    } else if (!times || times < 20) {
      times = times ? times + 1 : 1
      this.autoTimer = setTimeout(() => {
        this.autoExec(times)
      }, 1000)
    }
  }
  transferSyncData = (syncId) => {
    const { config } = this.state